pub struct SnapshotPayload {
pub next_node_id: NodeId,
pub next_rel_id: RelationshipId,
pub nodes: Vec<NodeRecord>,
pub relationships: Vec<RelationshipRecord>,
}Expand description
Portable representation of an entire store state.
Every Snapshotable backend produces and consumes this struct, so
snapshots are readable across backends as long as they agree on the
record shape (they do — all records are defined in lora-store).
Fields§
§next_node_id: NodeId§next_rel_id: RelationshipId§nodes: Vec<NodeRecord>§relationships: Vec<RelationshipRecord>Implementations§
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
Source§impl PartialEq for SnapshotPayload
impl PartialEq for SnapshotPayload
Source§impl Serialize for SnapshotPayload
impl Serialize for SnapshotPayload
impl StructuralPartialEq for SnapshotPayload
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