Struct garage_model::index_counter::CounterValue
source · pub struct CounterValue {
pub node_values: BTreeMap<Uuid, (u64, i64)>,
}
Expand description
A counter entry in the global table
Fields§
§node_values: BTreeMap<Uuid, (u64, i64)>
Trait Implementations§
source§impl Clone for CounterValue
impl Clone for CounterValue
source§fn clone(&self) -> CounterValue
fn clone(&self) -> CounterValue
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 Crdt for CounterValue
impl Crdt for CounterValue
source§impl Debug for CounterValue
impl Debug for CounterValue
source§impl<'de> Deserialize<'de> for CounterValue
impl<'de> Deserialize<'de> for CounterValue
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 PartialEq for CounterValue
impl PartialEq for CounterValue
source§fn eq(&self, other: &CounterValue) -> bool
fn eq(&self, other: &CounterValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CounterValue
impl Serialize for CounterValue
impl Eq for CounterValue
impl StructuralPartialEq for CounterValue
Auto Trait Implementations§
impl Freeze for CounterValue
impl RefUnwindSafe for CounterValue
impl Send for CounterValue
impl Sync for CounterValue
impl Unpin for CounterValue
impl UnwindSafe for CounterValue
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.