Enum MergePolicy
pub enum MergePolicy {
KeepKnown,
Overwrite,
}Expand description
How an extracted field should be merged into authoritative session state.
Variants§
KeepKnown
Keep an existing state value; write only when the target key is absent.
Overwrite
Always overwrite the target state key with the extracted field value.
Trait Implementations§
§impl Clone for MergePolicy
impl Clone for MergePolicy
§fn clone(&self) -> MergePolicy
fn clone(&self) -> MergePolicy
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 more§impl Debug for MergePolicy
impl Debug for MergePolicy
§impl PartialEq for MergePolicy
impl PartialEq for MergePolicy
impl Copy for MergePolicy
impl Eq for MergePolicy
impl StructuralPartialEq for MergePolicy
Auto Trait Implementations§
impl Freeze for MergePolicy
impl RefUnwindSafe for MergePolicy
impl Send for MergePolicy
impl Sync for MergePolicy
impl Unpin for MergePolicy
impl UnwindSafe for MergePolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more