pub enum ValuePrimitiveType {
Primitive(PrimitiveValue),
NestedPrimitive(BTreeMap<String, PrimitiveValue>),
}
Expand description
Arrays may contain either a primitive or an object whose values are primitives
Variants§
Primitive(PrimitiveValue)
Primitive type
NestedPrimitive(BTreeMap<String, PrimitiveValue>)
Nested shape that can only contain primitives
Trait Implementations§
Source§impl Clone for ValuePrimitiveType
impl Clone for ValuePrimitiveType
Source§fn clone(&self) -> ValuePrimitiveType
fn clone(&self) -> ValuePrimitiveType
Returns a copy 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 ValuePrimitiveType
impl Debug for ValuePrimitiveType
Source§impl<'de> Deserialize<'de> for ValuePrimitiveType
impl<'de> Deserialize<'de> for ValuePrimitiveType
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 PartialEq for ValuePrimitiveType
impl PartialEq for ValuePrimitiveType
Source§impl Serialize for ValuePrimitiveType
impl Serialize for ValuePrimitiveType
impl StructuralPartialEq for ValuePrimitiveType
Auto Trait Implementations§
impl Freeze for ValuePrimitiveType
impl RefUnwindSafe for ValuePrimitiveType
impl Send for ValuePrimitiveType
impl Sync for ValuePrimitiveType
impl Unpin for ValuePrimitiveType
impl UnwindSafe for ValuePrimitiveType
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