pub struct PlotPolyOperation {
pub fill: PlotterFill,
pub fill_color: Option<String>,
pub index: u32,
pub kind: String,
pub layer: Option<String>,
pub line_style: Option<PlotterLineStyle>,
pub points: Vec<PlotterPoint>,
pub stroke_color: Option<String>,
pub width_nm: JavaScriptSafeInteger,
}Expand description
Filled or outlined polygon operation.
JSON schema
{
"description": "Filled or outlined polygon operation.",
"type": "object",
"required": [
"fill",
"index",
"kind",
"points",
"width_nm"
],
"properties": {
"fill": {
"$ref": "#/$defs/PlotterFill"
},
"fill_color": {
"type": "string"
},
"index": {
"type": "integer",
"maximum": 4294967295.0,
"minimum": 0.0
},
"kind": {
"type": "string",
"const": "PlotPoly"
},
"layer": {
"type": "string"
},
"line_style": {
"$ref": "#/$defs/PlotterLineStyle"
},
"points": {
"type": "array",
"items": {
"$ref": "#/$defs/PlotterPoint"
}
},
"stroke_color": {
"type": "string"
},
"width_nm": {
"$ref": "#/$defs/JavaScriptSafeInteger"
}
},
"additionalProperties": false
}Fields§
§fill: PlotterFill§fill_color: Option<String>§index: u32§kind: String§layer: Option<String>§line_style: Option<PlotterLineStyle>§points: Vec<PlotterPoint>§stroke_color: Option<String>§width_nm: JavaScriptSafeIntegerTrait Implementations§
Source§impl Clone for PlotPolyOperation
impl Clone for PlotPolyOperation
Source§fn clone(&self) -> PlotPolyOperation
fn clone(&self) -> PlotPolyOperation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlotPolyOperation
impl Debug for PlotPolyOperation
Source§impl<'de> Deserialize<'de> for PlotPolyOperation
impl<'de> Deserialize<'de> for PlotPolyOperation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PlotPolyOperation> for PlotterOperation
impl From<PlotPolyOperation> for PlotterOperation
Source§fn from(value: PlotPolyOperation) -> Self
fn from(value: PlotPolyOperation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PlotPolyOperation
impl RefUnwindSafe for PlotPolyOperation
impl Send for PlotPolyOperation
impl Sync for PlotPolyOperation
impl Unpin for PlotPolyOperation
impl UnsafeUnpin for PlotPolyOperation
impl UnwindSafe for PlotPolyOperation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more