pub struct JsonSection {
pub designation: Option<String>,
pub outer_vertices: Vec<[f64; 2]>,
pub holes: Vec<Vec<[f64; 2]>>,
pub properties: Option<JsonSectionProperties>,
pub material: Option<JsonMaterial>,
}Expand description
JSON representation of a section for export/import.
Fields§
§designation: Option<String>§outer_vertices: Vec<[f64; 2]>§holes: Vec<Vec<[f64; 2]>>§properties: Option<JsonSectionProperties>§material: Option<JsonMaterial>Trait Implementations§
Source§impl Clone for JsonSection
impl Clone for JsonSection
Source§impl Debug for JsonSection
impl Debug for JsonSection
Source§impl<'de> Deserialize<'de> for JsonSection
impl<'de> Deserialize<'de> for JsonSection
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<JsonSection> for Section
Convert JsonSection back to Section.
impl From<JsonSection> for Section
Convert JsonSection back to Section.
Source§fn from(json: JsonSection) -> Self
fn from(json: JsonSection) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for JsonSection
impl Freeze for JsonSection
impl Move for JsonSection
impl RefUnwindSafe for JsonSection
impl Send for JsonSection
impl Sync for JsonSection
impl Unpin for JsonSection
impl UnsafeUnpin for JsonSection
impl UnwindSafe for JsonSection
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