pub struct OptValue<V> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'de, V> Deserialize<'de> for OptValue<V>where
V: Deserialize<'de>,
impl<'de, V> Deserialize<'de> for OptValue<V>where
V: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OptValue<V>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OptValue<V>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<V> Node for OptValue<V>
A config item for amending a mandatory value
impl<V> Node for OptValue<V>
A config item for amending a mandatory value
const IS_CONTAINER: bool = true
Source§type Update = OptValueUpdate<V>
type Update = OptValueUpdate<V>
The update type is the set of operations that can be applied
to this datastructure to modify it.
Source§type Diff = OptValueDiff<V>
type Diff = OptValueDiff<V>
The diff type is a representation of the difference between to
instances of this datastructure.
Source§fn apply_update(&mut self, update: <OptValue<V> as Node>::Update)
fn apply_update(&mut self, update: <OptValue<V> as Node>::Update)
Apply the given update to this struct
Source§fn as_update(&self) -> <OptValue<V> as Node>::Update
fn as_update(&self) -> <OptValue<V> as Node>::Update
Get the update corresponding to this struct, that is the
update to be applied to the default instance to obtain this
struct.
Source§fn apply_diff(&mut self, diff: <OptValue<V> as Node>::Diff)
fn apply_diff(&mut self, diff: <OptValue<V> as Node>::Diff)
Apply the given diff to this struct
Source§fn as_diff(&self) -> <OptValue<V> as Node>::Diff
fn as_diff(&self) -> <OptValue<V> as Node>::Diff
Return the diff object to apply to obtain this current
updatable value.
fn is_empty(&self) -> bool
Source§impl<V> Serialize for OptValue<V>where
V: Serialize,
impl<V> Serialize for OptValue<V>where
V: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<V> Eq for OptValue<V>where
V: Eq,
impl<V> StructuralPartialEq for OptValue<V>
Auto Trait Implementations§
impl<V> Freeze for OptValue<V>where
V: Freeze,
impl<V> RefUnwindSafe for OptValue<V>where
V: RefUnwindSafe,
impl<V> Send for OptValue<V>where
V: Send,
impl<V> Sync for OptValue<V>where
V: Sync,
impl<V> Unpin for OptValue<V>where
V: Unpin,
impl<V> UnwindSafe for OptValue<V>where
V: UnwindSafe,
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