pub struct Semantics {
pub surfaces: Vec<SemanticsSurface>,
pub values: Option<SemanticsValues>,
pub other: HashMap<String, Value>,
}Expand description
The semantics member of a geometry.
values is a required member whose value may be null
("type": ["array", "null"], and "required": ["surfaces", "values"]), so
it is an Option that is serialized even when None — writing it out as
null rather than dropping the member, which would produce a document the
schema rejects.
As with SemanticsSurface, the semantics object in
geomprimitives.schema.json names surfaces and values and declares no
additionalProperties: false – unlike its enclosing geometry object,
which does – so any further member is legal and is kept verbatim in
other rather than dropped.
Fields§
§surfaces: Vec<SemanticsSurface>§values: Option<SemanticsValues>§other: HashMap<String, Value>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Semantics
impl<'de> Deserialize<'de> for Semantics
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
impl Eq for Semantics
impl StructuralPartialEq for Semantics
Auto Trait Implementations§
impl Freeze for Semantics
impl RefUnwindSafe for Semantics
impl Send for Semantics
impl Sync for Semantics
impl Unpin for Semantics
impl UnsafeUnpin for Semantics
impl UnwindSafe for Semantics
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