pub enum ApplyKind {
Replace,
Merge,
}Expand description
Defines how values from a set of defaults and an individual item will be merged.
@since 3.18.0
Variants§
Replace
The value from the individual item (if provided and not null) will be
used instead of the default.
Merge
The value from the item will be merged with the default.
The specific rules for mergeing values are defined against each field that supports merging.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApplyKind
impl<'de> Deserialize<'de> for ApplyKind
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
impl Copy for ApplyKind
impl Eq for ApplyKind
impl StructuralPartialEq for ApplyKind
Auto Trait Implementations§
impl Freeze for ApplyKind
impl RefUnwindSafe for ApplyKind
impl Send for ApplyKind
impl Sync for ApplyKind
impl Unpin for ApplyKind
impl UnsafeUnpin for ApplyKind
impl UnwindSafe for ApplyKind
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