pub struct Dictionary {
pub name: Option<String>,
pub source: Option<Ref>,
pub source_dictionary: Option<String>,
pub source_path: Option<String>,
}
Expand description
Declares a dictionary capability.
Fields§
§name: Option<String>
§source: Option<Ref>
§source_dictionary: Option<String>
§source_path: Option<String>
Trait Implementations§
Source§impl Clone for Dictionary
impl Clone for Dictionary
Source§fn clone(&self) -> Dictionary
fn clone(&self) -> Dictionary
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 Dictionary
impl Debug for Dictionary
Source§impl Encodable for Dictionary
impl Encodable for Dictionary
Source§type Encoded = WireDictionary
type Encoded = WireDictionary
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<___E> Encode<___E> for Dictionarywhere
___E: Encoder + ?Sized,
impl<___E> Encode<___E> for Dictionarywhere
___E: Encoder + ?Sized,
Source§impl TakeFrom<WireDictionary> for Dictionary
impl TakeFrom<WireDictionary> for Dictionary
Source§fn take_from(from: &WireDictionary) -> Self
fn take_from(from: &WireDictionary) -> 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 Dictionary
impl RefUnwindSafe for Dictionary
impl Send for Dictionary
impl Sync for Dictionary
impl Unpin for Dictionary
impl UnwindSafe for Dictionary
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