pub struct RectOperation {Show 13 fields
pub corner_radius_nm: JavaScriptSafeInteger,
pub fill: PlotterFill,
pub fill_color: Option<String>,
pub index: u32,
pub kind: String,
pub layer: Option<String>,
pub line_style: Option<PlotterLineStyle>,
pub stroke_color: Option<String>,
pub width_nm: JavaScriptSafeInteger,
pub x1: JavaScriptSafeInteger,
pub x2: JavaScriptSafeInteger,
pub y1: JavaScriptSafeInteger,
pub y2: JavaScriptSafeInteger,
}Expand description
Rectangle with square corners.
JSON schema
{
"description": "Rectangle with square corners.",
"type": "object",
"required": [
"corner_radius_nm",
"fill",
"index",
"kind",
"width_nm",
"x1",
"x2",
"y1",
"y2"
],
"properties": {
"corner_radius_nm": {
"$ref": "#/$defs/JavaScriptSafeInteger"
},
"fill": {
"$ref": "#/$defs/PlotterFill"
},
"fill_color": {
"type": "string"
},
"index": {
"type": "integer",
"maximum": 4294967295.0,
"minimum": 0.0
},
"kind": {
"type": "string",
"const": "Rect"
},
"layer": {
"type": "string"
},
"line_style": {
"$ref": "#/$defs/PlotterLineStyle"
},
"stroke_color": {
"type": "string"
},
"width_nm": {
"$ref": "#/$defs/JavaScriptSafeInteger"
},
"x1": {
"$ref": "#/$defs/JavaScriptSafeInteger"
},
"x2": {
"$ref": "#/$defs/JavaScriptSafeInteger"
},
"y1": {
"$ref": "#/$defs/JavaScriptSafeInteger"
},
"y2": {
"$ref": "#/$defs/JavaScriptSafeInteger"
}
},
"additionalProperties": false
}Fields§
§corner_radius_nm: JavaScriptSafeInteger§fill: PlotterFill§fill_color: Option<String>§index: u32§kind: String§layer: Option<String>§line_style: Option<PlotterLineStyle>§stroke_color: Option<String>§width_nm: JavaScriptSafeInteger§x1: JavaScriptSafeInteger§x2: JavaScriptSafeInteger§y1: JavaScriptSafeInteger§y2: JavaScriptSafeIntegerTrait Implementations§
Source§impl Clone for RectOperation
impl Clone for RectOperation
Source§fn clone(&self) -> RectOperation
fn clone(&self) -> RectOperation
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 RectOperation
impl Debug for RectOperation
Source§impl<'de> Deserialize<'de> for RectOperation
impl<'de> Deserialize<'de> for RectOperation
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<RectOperation> for PlotterOperation
impl From<RectOperation> for PlotterOperation
Source§fn from(value: RectOperation) -> Self
fn from(value: RectOperation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RectOperation
impl RefUnwindSafe for RectOperation
impl Send for RectOperation
impl Sync for RectOperation
impl Unpin for RectOperation
impl UnsafeUnpin for RectOperation
impl UnwindSafe for RectOperation
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