pub struct ConfigValueSpec {
pub value: Option<ConfigValue>,
}
Expand description
An individual configuration value. It is matched against a specific configuration field based
on its offset within ValuesData.values
.
Fields§
§value: Option<ConfigValue>
Trait Implementations§
Source§impl Clone for ConfigValueSpec
impl Clone for ConfigValueSpec
Source§fn clone(&self) -> ConfigValueSpec
fn clone(&self) -> ConfigValueSpec
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 ConfigValueSpec
impl Debug for ConfigValueSpec
Source§impl Encodable for ConfigValueSpec
impl Encodable for ConfigValueSpec
Source§type Encoded = WireConfigValueSpec
type Encoded = WireConfigValueSpec
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 ConfigValueSpecwhere
___E: Encoder + ?Sized,
impl<___E> Encode<___E> for ConfigValueSpecwhere
___E: Encoder + ?Sized,
Source§impl TakeFrom<WireConfigValueSpec> for ConfigValueSpec
impl TakeFrom<WireConfigValueSpec> for ConfigValueSpec
Source§fn take_from(from: &WireConfigValueSpec) -> Self
fn take_from(from: &WireConfigValueSpec) -> 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 ConfigValueSpec
impl RefUnwindSafe for ConfigValueSpec
impl Send for ConfigValueSpec
impl Sync for ConfigValueSpec
impl Unpin for ConfigValueSpec
impl UnwindSafe for ConfigValueSpec
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