pub struct ValueWithDefault {
pub value: ConditionalValue,
pub default: Option<ConditionalValue>,
}Fields§
§value: ConditionalValue§default: Option<ConditionalValue>Trait Implementations§
Source§impl Clone for ValueWithDefault
impl Clone for ValueWithDefault
Source§fn clone(&self) -> ValueWithDefault
fn clone(&self) -> ValueWithDefault
Returns a duplicate 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 ValueWithDefault
impl Debug for ValueWithDefault
Source§impl<'de> Deserialize<'de> for ValueWithDefault
impl<'de> Deserialize<'de> for ValueWithDefault
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ValueWithDefault
impl PartialEq for ValueWithDefault
Source§impl Serialize for ValueWithDefault
impl Serialize for ValueWithDefault
impl StructuralPartialEq for ValueWithDefault
Auto Trait Implementations§
impl Freeze for ValueWithDefault
impl RefUnwindSafe for ValueWithDefault
impl Send for ValueWithDefault
impl Sync for ValueWithDefault
impl Unpin for ValueWithDefault
impl UnwindSafe for ValueWithDefault
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