Skip to main content
← Back to kicad-monkey Rust Docs kicad-monkey Rust Crate API Reference

BoardFootprintPadBlockAttrs

Struct BoardFootprintPadBlockAttrs 

Source
pub struct BoardFootprintPadBlockAttrs {
Show 22 fields pub component: Option<String>, pub component_uid: Option<String>, pub component_uuid: Option<String>, pub footprint: Option<String>, pub hole_diameter_mm: Option<String>, pub hole_height_mm: Option<String>, pub hole_kind: Option<BoardFootprintPadBlockAttrsHoleKind>, pub hole_owner: Option<String>, pub hole_plating: Option<BoardFootprintPadBlockAttrsHolePlating>, pub hole_render: Option<String>, pub hole_width_mm: Option<String>, pub layer_names: Option<String>, pub net: Option<String>, pub net_class: Option<String>, pub net_classes: Option<String>, pub net_id: Option<String>, pub net_index: Option<String>, pub pad_designator: Option<String>, pub pad_number: Option<String>, pub pad_shape: Option<String>, pub pad_type: Option<String>, pub primitive: BoardFootprintPadBlockAttrsPrimitive,
}
Expand description

Stringified SVG-enrichment attributes on an embedded pad block.

JSON schema
{
 "description": "Stringified SVG-enrichment attributes on an embedded pad block.",
 "type": "object",
 "required": [
   "primitive"
 ],
 "properties": {
   "component": {
     "type": "string"
   },
   "component_uid": {
     "type": "string"
   },
   "component_uuid": {
     "type": "string"
   },
   "footprint": {
     "type": "string"
   },
   "hole_diameter_mm": {
     "type": "string"
   },
   "hole_height_mm": {
     "type": "string"
   },
   "hole_kind": {
     "anyOf": [
       {
         "type": "string",
         "const": "round"
       },
       {
         "type": "string",
         "const": "slot"
       }
     ]
   },
   "hole_owner": {
     "type": "string"
   },
   "hole_plating": {
     "anyOf": [
       {
         "type": "string",
         "const": "plated"
       },
       {
         "type": "string",
         "const": "non_plated"
       }
     ]
   },
   "hole_render": {
     "type": "string",
     "const": "drill"
   },
   "hole_width_mm": {
     "type": "string"
   },
   "layer_names": {
     "type": "string"
   },
   "net": {
     "type": "string"
   },
   "net_class": {
     "type": "string"
   },
   "net_classes": {
     "type": "string"
   },
   "net_id": {
     "type": "string"
   },
   "net_index": {
     "type": "string"
   },
   "pad_designator": {
     "type": "string"
   },
   "pad_number": {
     "type": "string"
   },
   "pad_shape": {
     "type": "string"
   },
   "pad_type": {
     "type": "string"
   },
   "primitive": {
     "anyOf": [
       {
         "type": "string",
         "const": "pad"
       },
       {
         "type": "string",
         "const": "pad-hole"
       }
     ]
   }
 },
 "additionalProperties": false
}

Fields§

§component: Option<String>§component_uid: Option<String>§component_uuid: Option<String>§footprint: Option<String>§hole_diameter_mm: Option<String>§hole_height_mm: Option<String>§hole_kind: Option<BoardFootprintPadBlockAttrsHoleKind>§hole_owner: Option<String>§hole_plating: Option<BoardFootprintPadBlockAttrsHolePlating>§hole_render: Option<String>§hole_width_mm: Option<String>§layer_names: Option<String>§net: Option<String>§net_class: Option<String>§net_classes: Option<String>§net_id: Option<String>§net_index: Option<String>§pad_designator: Option<String>§pad_number: Option<String>§pad_shape: Option<String>§pad_type: Option<String>§primitive: BoardFootprintPadBlockAttrsPrimitive

Trait Implementations§

Source§

impl Clone for BoardFootprintPadBlockAttrs

Source§

fn clone(&self) -> BoardFootprintPadBlockAttrs

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BoardFootprintPadBlockAttrs

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for BoardFootprintPadBlockAttrs

Source§

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 Serialize for BoardFootprintPadBlockAttrs

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.