pub enum PrimitiveShapeType {
Primitive(PrimitiveShape),
NestedPrimitive(Map<String, PrimitiveShape>),
}Expand description
Arrays may contain either a primitive or an object whose values are primitives
Variants§
Primitive(PrimitiveShape)
Primitive type
NestedPrimitive(Map<String, PrimitiveShape>)
Nested shape that can only contain primitives
Trait Implementations§
Source§impl Clone for PrimitiveShapeType
impl Clone for PrimitiveShapeType
Source§fn clone(&self) -> PrimitiveShapeType
fn clone(&self) -> PrimitiveShapeType
Returns a duplicate of the value. Read more
1.0.0 · 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 PrimitiveShapeType
impl Debug for PrimitiveShapeType
Source§impl<'de> Deserialize<'de> for PrimitiveShapeType
impl<'de> Deserialize<'de> for PrimitiveShapeType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PrimitiveShapeType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PrimitiveShapeType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ValuePrimitiveType> for PrimitiveShapeType
impl From<&ValuePrimitiveType> for PrimitiveShapeType
Source§fn from(val: &ValuePrimitiveType) -> PrimitiveShapeType
fn from(val: &ValuePrimitiveType) -> PrimitiveShapeType
Converts to this type from the input type.
Source§impl PartialEq for PrimitiveShapeType
impl PartialEq for PrimitiveShapeType
Source§impl Serialize for PrimitiveShapeType
impl Serialize for PrimitiveShapeType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PrimitiveShapeType
Auto Trait Implementations§
impl Freeze for PrimitiveShapeType
impl RefUnwindSafe for PrimitiveShapeType
impl Send for PrimitiveShapeType
impl Sync for PrimitiveShapeType
impl Unpin for PrimitiveShapeType
impl UnwindSafe for PrimitiveShapeType
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