pub enum AttributeType {
Show 13 variants
String,
Number,
Bool,
List(Box<AttributeType>),
Set(Box<AttributeType>),
Map(Box<AttributeType>),
Object(HashMap<String, AttributeType>),
Tuple(Vec<AttributeType>),
AttributeSingle(HashMap<String, Attribute>),
AttributeList(HashMap<String, Attribute>),
AttributeSet(HashMap<String, Attribute>),
AttributeMap(HashMap<String, Attribute>),
Any,
}Expand description
Specify the Attribute type
Variants§
String
String
Number
Number (int or float)
Bool
Boolean
List(Box<AttributeType>)
List
Set(Box<AttributeType>)
Set
Map(Box<AttributeType>)
Map
Object(HashMap<String, AttributeType>)
Object
Tuple(Vec<AttributeType>)
Tuple
AttributeSingle(HashMap<String, Attribute>)
Nested attributes
AttributeList(HashMap<String, Attribute>)
List of nested attributes
AttributeSet(HashMap<String, Attribute>)
Set of nested attributes
AttributeMap(HashMap<String, Attribute>)
Map of nested attributes
Any
Dynamic (serialized into a json pair [type, value])
Trait Implementations§
Source§impl Clone for AttributeType
impl Clone for AttributeType
Source§fn clone(&self) -> AttributeType
fn clone(&self) -> AttributeType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AttributeType
impl Debug for AttributeType
Source§impl Display for AttributeType
impl Display for AttributeType
impl Eq for AttributeType
Source§impl PartialEq for AttributeType
impl PartialEq for AttributeType
Source§fn eq(&self, other: &AttributeType) -> bool
fn eq(&self, other: &AttributeType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AttributeType
impl Serialize for AttributeType
impl StructuralPartialEq for AttributeType
Auto Trait Implementations§
impl Freeze for AttributeType
impl RefUnwindSafe for AttributeType
impl Send for AttributeType
impl Sync for AttributeType
impl Unpin for AttributeType
impl UnsafeUnpin for AttributeType
impl UnwindSafe for AttributeType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request