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.
Backends produce and consume this struct through inherent helpers;
the byte-level codec is owned by lora-snapshot.
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 (const: unstable) · 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§fn eq(&self, other: &SnapshotPayload) -> bool
fn eq(&self, other: &SnapshotPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.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