pub struct ConfigField {
pub key: Option<String>,
pub type_: Option<ConfigType>,
pub mutability: Option<ConfigMutability>,
}
Expand description
Declares a single config field (key + type)
Fields§
§key: Option<String>
§type_: Option<ConfigType>
§mutability: Option<ConfigMutability>
Trait Implementations§
Source§impl Clone for ConfigField
impl Clone for ConfigField
Source§fn clone(&self) -> ConfigField
fn clone(&self) -> ConfigField
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 ConfigField
impl Debug for ConfigField
Source§impl Encodable for ConfigField
impl Encodable for ConfigField
Source§type Encoded = WireConfigField
type Encoded = WireConfigField
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 ConfigFieldwhere
___E: Encoder + ?Sized,
impl<___E> Encode<___E> for ConfigFieldwhere
___E: Encoder + ?Sized,
Source§impl TakeFrom<WireConfigField> for ConfigField
impl TakeFrom<WireConfigField> for ConfigField
Source§fn take_from(from: &WireConfigField) -> Self
fn take_from(from: &WireConfigField) -> 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 ConfigField
impl RefUnwindSafe for ConfigField
impl Send for ConfigField
impl Sync for ConfigField
impl Unpin for ConfigField
impl UnwindSafe for ConfigField
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