pub enum DictionaryValue {
Str(String),
StrVec(Vec<String>),
ObjVec(Vec<Dictionary>),
UnknownOrdinal_(u64),
}
Expand description
A dictionary’s value is a string, a list of strings, or a list of objects.
Variants§
Trait Implementations§
Source§impl Clone for DictionaryValue
impl Clone for DictionaryValue
Source§fn clone(&self) -> DictionaryValue
fn clone(&self) -> DictionaryValue
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 DictionaryValue
impl Debug for DictionaryValue
Source§impl Encodable for DictionaryValue
impl Encodable for DictionaryValue
Source§type Encoded = WireDictionaryValue
type Encoded = WireDictionaryValue
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl EncodableOption for Box<DictionaryValue>
impl EncodableOption for Box<DictionaryValue>
Source§type EncodedOption = WireOptionalDictionaryValue
type EncodedOption = WireOptionalDictionaryValue
The wire type for the optional value.
Source§impl<___E> Encode<___E> for DictionaryValuewhere
___E: InternalHandleEncoder + ?Sized + Encoder,
impl<___E> Encode<___E> for DictionaryValuewhere
___E: InternalHandleEncoder + ?Sized + Encoder,
Source§impl<___E> EncodeOption<___E> for Box<DictionaryValue>where
___E: ?Sized,
DictionaryValue: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<DictionaryValue>where
___E: ?Sized,
DictionaryValue: Encode<___E>,
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl TakeFrom<WireDictionaryValue> for DictionaryValue
impl TakeFrom<WireDictionaryValue> for DictionaryValue
Source§fn take_from(from: &WireDictionaryValue) -> Self
fn take_from(from: &WireDictionaryValue) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for DictionaryValue
impl RefUnwindSafe for DictionaryValue
impl Send for DictionaryValue
impl Sync for DictionaryValue
impl Unpin for DictionaryValue
impl UnwindSafe for DictionaryValue
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