pub struct ThickSegmentOperation {Show 14 fields
pub end_x: JavaScriptSafeInteger,
pub end_y: JavaScriptSafeInteger,
pub index: u32,
pub kind: String,
pub layer: Option<String>,
pub layers: Vec<String>,
pub mask_margin_nm: Option<JavaScriptSafeInteger>,
pub pad_size_x_nm: Option<JavaScriptSafeInteger>,
pub pad_size_y_nm: Option<JavaScriptSafeInteger>,
pub role: Option<PlotterDrillRole>,
pub start_x: JavaScriptSafeInteger,
pub start_y: JavaScriptSafeInteger,
pub stroke_color: Option<String>,
pub width_nm: JavaScriptSafeInteger,
}Expand description
Solid or decomposed segment shared by PCB, footprint, and drill producers. Graphic state requires only layer. Drill state requires role plus layers; NPTH drill state additionally requires all mask and pad-size hints. The generated semantic validator enforces these mutually exclusive states.
JSON schema
{
"description": "Solid or decomposed segment shared by PCB, footprint, and drill producers.\nGraphic state requires only layer. Drill state requires role plus layers;\nNPTH drill state additionally requires all mask and pad-size hints. The\ngenerated semantic validator enforces these mutually exclusive states.",
"type": "object",
"required": [
"end_x",
"end_y",
"index",
"kind",
"start_x",
"start_y",
"width_nm"
],
"properties": {
"end_x": {
"$ref": "#/$defs/JavaScriptSafeInteger"
},
"end_y": {
"$ref": "#/$defs/JavaScriptSafeInteger"
},
"index": {
"type": "integer",
"maximum": 4294967295.0,
"minimum": 0.0
},
"kind": {
"type": "string",
"const": "ThickSegment"
},
"layer": {
"type": "string"
},
"layers": {
"type": "array",
"items": {
"type": "string"
}
},
"mask_margin_nm": {
"$ref": "#/$defs/JavaScriptSafeInteger"
},
"pad_size_x_nm": {
"$ref": "#/$defs/JavaScriptSafeInteger"
},
"pad_size_y_nm": {
"$ref": "#/$defs/JavaScriptSafeInteger"
},
"role": {
"$ref": "#/$defs/PlotterDrillRole"
},
"start_x": {
"$ref": "#/$defs/JavaScriptSafeInteger"
},
"start_y": {
"$ref": "#/$defs/JavaScriptSafeInteger"
},
"stroke_color": {
"type": "string"
},
"width_nm": {
"$ref": "#/$defs/JavaScriptSafeInteger"
}
},
"additionalProperties": false
}Fields§
§end_x: JavaScriptSafeInteger§end_y: JavaScriptSafeInteger§index: u32§kind: String§layer: Option<String>§layers: Vec<String>§mask_margin_nm: Option<JavaScriptSafeInteger>§pad_size_x_nm: Option<JavaScriptSafeInteger>§pad_size_y_nm: Option<JavaScriptSafeInteger>§role: Option<PlotterDrillRole>§start_x: JavaScriptSafeInteger§start_y: JavaScriptSafeInteger§stroke_color: Option<String>§width_nm: JavaScriptSafeIntegerTrait Implementations§
Source§impl Clone for ThickSegmentOperation
impl Clone for ThickSegmentOperation
Source§fn clone(&self) -> ThickSegmentOperation
fn clone(&self) -> ThickSegmentOperation
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 ThickSegmentOperation
impl Debug for ThickSegmentOperation
Source§impl<'de> Deserialize<'de> for ThickSegmentOperation
impl<'de> Deserialize<'de> for ThickSegmentOperation
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<ThickSegmentOperation> for PlotterOperation
impl From<ThickSegmentOperation> for PlotterOperation
Source§fn from(value: ThickSegmentOperation) -> Self
fn from(value: ThickSegmentOperation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ThickSegmentOperation
impl RefUnwindSafe for ThickSegmentOperation
impl Send for ThickSegmentOperation
impl Sync for ThickSegmentOperation
impl Unpin for ThickSegmentOperation
impl UnsafeUnpin for ThickSegmentOperation
impl UnwindSafe for ThickSegmentOperation
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