pub struct SnapshotPayload {Show 19 fields
pub item_id: String,
pub title: LwwSnapshot<String>,
pub description: LwwSnapshot<String>,
pub kind: LwwSnapshot<Kind>,
pub size: LwwSnapshot<Option<Size>>,
pub urgency: LwwSnapshot<Urgency>,
pub parent: LwwSnapshot<String>,
pub deleted: LwwSnapshot<bool>,
pub state: EpochPhaseState,
pub assignees: OrSet<String>,
pub labels: OrSet<String>,
pub blocked_by: OrSet<String>,
pub related_to: OrSet<String>,
pub comments: GSet<String>,
pub created_at: u64,
pub updated_at: u64,
pub compacted_from: usize,
pub earliest_ts: i64,
pub latest_ts: i64,
}Expand description
Full snapshot payload encoding every CRDT field with its clock metadata.
This is the state JSON inside an item.snapshot event’s SnapshotData.
It preserves enough information for field-wise lattice join on merge.
Fields§
§item_id: StringItem identifier.
title: LwwSnapshot<String>§description: LwwSnapshot<String>§kind: LwwSnapshot<Kind>§size: LwwSnapshot<Option<Size>>§urgency: LwwSnapshot<Urgency>§parent: LwwSnapshot<String>§deleted: LwwSnapshot<bool>§state: EpochPhaseState§assignees: OrSet<String>§labels: OrSet<String>§blocked_by: OrSet<String>§comments: GSet<String>§created_at: u64§updated_at: u64§compacted_from: usizeNumber of original events that were compacted into this snapshot.
earliest_ts: i64Wall-clock timestamp (microseconds) of the earliest original event.
latest_ts: i64Wall-clock timestamp (microseconds) of the latest original event.
Trait Implementations§
Source§impl Clone for SnapshotPayload
impl Clone for SnapshotPayload
Source§fn clone(&self) -> SnapshotPayload
fn clone(&self) -> SnapshotPayload
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 Debug for SnapshotPayload
impl Debug for SnapshotPayload
Source§impl<'de> Deserialize<'de> for SnapshotPayload
impl<'de> Deserialize<'de> for SnapshotPayload
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
Auto Trait Implementations§
impl Freeze for SnapshotPayload
impl RefUnwindSafe for SnapshotPayload
impl Send for SnapshotPayload
impl Sync for SnapshotPayload
impl Unpin for SnapshotPayload
impl UnsafeUnpin for SnapshotPayload
impl UnwindSafe for SnapshotPayload
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