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

BoardFootprintChildAttrs

Struct BoardFootprintChildAttrs 

Source
pub struct BoardFootprintChildAttrs {
Show 14 fields pub component: String, pub component_uid: String, pub component_uuid: String, pub footprint: String, pub footprint_graphic_kind: Option<BoardFootprintChildAttrsFootprintGraphicKind>, pub footprint_object_index: u32, pub footprint_primitive: BoardFootprintChildRef, pub footprint_subop_index: Option<u32>, pub footprint_text_role: Option<BoardFootprintChildAttrsFootprintTextRole>, pub fp_text_type: Option<String>, pub layer_name: Option<String>, pub layer_role: Option<BoardFootprintLayerRole>, pub primitive: BoardFootprintChildAttrsPrimitive, pub property_name: Option<String>,
}
Expand description

SVG-enrichment metadata retained on one embedded-footprint child operation.

JSON schema
{
 "description": "SVG-enrichment metadata retained on one embedded-footprint child operation.",
 "type": "object",
 "required": [
   "component",
   "component_uid",
   "component_uuid",
   "footprint",
   "footprint_object_index",
   "footprint_primitive",
   "primitive"
 ],
 "properties": {
   "component": {
     "type": "string"
   },
   "component_uid": {
     "type": "string"
   },
   "component_uuid": {
     "type": "string"
   },
   "footprint": {
     "type": "string"
   },
   "footprint_graphic_kind": {
     "anyOf": [
       {
         "type": "string",
         "const": "text-box-border"
       },
       {
         "type": "string",
         "const": "line"
       },
       {
         "type": "string",
         "const": "arc"
       },
       {
         "type": "string",
         "const": "circle"
       },
       {
         "type": "string",
         "const": "rect"
       },
       {
         "type": "string",
         "const": "poly"
       }
     ]
   },
   "footprint_object_index": {
     "type": "integer",
     "maximum": 4294967295.0,
     "minimum": 0.0
   },
   "footprint_primitive": {
     "$ref": "#/$defs/BoardFootprintChildRef"
   },
   "footprint_subop_index": {
     "type": "integer",
     "maximum": 4294967295.0,
     "minimum": 0.0
   },
   "footprint_text_role": {
     "anyOf": [
       {
         "type": "string",
         "const": "designator"
       },
       {
         "type": "string",
         "const": "value"
       },
       {
         "type": "string",
         "const": "property"
       },
       {
         "type": "string",
         "const": "user"
       }
     ]
   },
   "fp_text_type": {
     "type": "string"
   },
   "layer_name": {
     "type": "string"
   },
   "layer_role": {
     "$ref": "#/$defs/BoardFootprintLayerRole"
   },
   "primitive": {
     "anyOf": [
       {
         "type": "string",
         "const": "footprint-text"
       },
       {
         "type": "string",
         "const": "footprint-graphic"
       }
     ]
   },
   "property_name": {
     "type": "string"
   }
 },
 "additionalProperties": false
}

Fields§

§component: String§component_uid: String§component_uuid: String§footprint: String§footprint_graphic_kind: Option<BoardFootprintChildAttrsFootprintGraphicKind>§footprint_object_index: u32§footprint_primitive: BoardFootprintChildRef§footprint_subop_index: Option<u32>§footprint_text_role: Option<BoardFootprintChildAttrsFootprintTextRole>§fp_text_type: Option<String>§layer_name: Option<String>§layer_role: Option<BoardFootprintLayerRole>§primitive: BoardFootprintChildAttrsPrimitive§property_name: Option<String>

Trait Implementations§

Source§

impl Clone for BoardFootprintChildAttrs

Source§

fn clone(&self) -> BoardFootprintChildAttrs

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 BoardFootprintChildAttrs

Source§

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

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

impl<'de> Deserialize<'de> for BoardFootprintChildAttrs

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 BoardFootprintChildAttrs

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.