Enum noosphere_core::data::MapOperation
source · pub enum MapOperation<Key, Value> {
Add {
key: Key,
value: Value,
},
Remove {
key: Key,
},
}Variants§
Trait Implementations§
source§impl<Key: Clone, Value: Clone> Clone for MapOperation<Key, Value>
impl<Key: Clone, Value: Clone> Clone for MapOperation<Key, Value>
source§fn clone(&self) -> MapOperation<Key, Value>
fn clone(&self) -> MapOperation<Key, Value>
Returns a copy 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, Key, Value> Deserialize<'de> for MapOperation<Key, Value>where
Key: Deserialize<'de>,
Value: Deserialize<'de>,
impl<'de, Key, Value> Deserialize<'de> for MapOperation<Key, Value>where Key: Deserialize<'de>, Value: Deserialize<'de>,
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<Key: PartialEq, Value: PartialEq> PartialEq<MapOperation<Key, Value>> for MapOperation<Key, Value>
impl<Key: PartialEq, Value: PartialEq> PartialEq<MapOperation<Key, Value>> for MapOperation<Key, Value>
source§fn eq(&self, other: &MapOperation<Key, Value>) -> bool
fn eq(&self, other: &MapOperation<Key, Value>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.