pub enum SnapshotOrUpdate<K: Eq + Ord, V> {
Snapshot {
snapshot: BTreeMap<K, V>,
},
Update {
updates: Vec<(K, Option<V>)>,
},
}Variants§
Implementations§
Source§impl<K: Eq + Ord, V> SnapshotOrUpdate<K, V>
impl<K: Eq + Ord, V> SnapshotOrUpdate<K, V>
Trait Implementations§
Source§impl<K: Clone + Eq + Ord, V: Clone> Clone for SnapshotOrUpdate<K, V>
impl<K: Clone + Eq + Ord, V: Clone> Clone for SnapshotOrUpdate<K, V>
Source§fn clone(&self) -> SnapshotOrUpdate<K, V>
fn clone(&self) -> SnapshotOrUpdate<K, V>
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<'de, K, V> Deserialize<'de> for SnapshotOrUpdate<K, V>
impl<'de, K, V> Deserialize<'de> for SnapshotOrUpdate<K, V>
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<K0: Eq + Ord, K1: Eq + Ord, V> From<BTreeMap<K0, BTreeMap<K1, V>>> for SnapshotOrUpdate<K0, SnapshotOrUpdate<K1, V>>
impl<K0: Eq + Ord, K1: Eq + Ord, V> From<BTreeMap<K0, BTreeMap<K1, V>>> for SnapshotOrUpdate<K0, SnapshotOrUpdate<K1, V>>
Source§impl<K: Eq + Ord + JsonSchema, V: JsonSchema> JsonSchema for SnapshotOrUpdate<K, V>
impl<K: Eq + Ord + JsonSchema, V: JsonSchema> JsonSchema for SnapshotOrUpdate<K, V>
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl<K, V> Freeze for SnapshotOrUpdate<K, V>
impl<K, V> RefUnwindSafe for SnapshotOrUpdate<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for SnapshotOrUpdate<K, V>
impl<K, V> Sync for SnapshotOrUpdate<K, V>
impl<K, V> Unpin for SnapshotOrUpdate<K, V>
impl<K, V> UnwindSafe for SnapshotOrUpdate<K, V>
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