Struct dittolive_ditto::store::query_builder::DittoCounter
source · pub struct DittoCounter { /* private fields */ }
Expand description
Use doc.get::<DittoCounter>("...")
to obtain a read-only CRDT counter.
A CRDT counter that can be upserted as part of a document or assigned to a property during an update of a document.
Implementations§
Trait Implementations§
source§impl Clone for DittoCounter
impl Clone for DittoCounter
source§fn clone(&self) -> DittoCounter
fn clone(&self) -> DittoCounter
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 Debug for DittoCounter
impl Debug for DittoCounter
source§impl Default for DittoCounter
impl Default for DittoCounter
source§impl<'de> Deserialize<'de> for DittoCounter
impl<'de> Deserialize<'de> for DittoCounter
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 From<f64> for DittoCounter
impl From<f64> for DittoCounter
source§fn from(value: f64) -> DittoCounter
fn from(value: f64) -> DittoCounter
Converts to this type from the input type.
source§impl PartialEq for DittoCounter
impl PartialEq for DittoCounter
source§fn eq(&self, other: &DittoCounter) -> bool
fn eq(&self, other: &DittoCounter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DittoCounter
impl Serialize for DittoCounter
impl StructuralPartialEq for DittoCounter
Auto Trait Implementations§
impl Freeze for DittoCounter
impl RefUnwindSafe for DittoCounter
impl Send for DittoCounter
impl Sync for DittoCounter
impl Unpin for DittoCounter
impl UnwindSafe for DittoCounter
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)