pub struct SnapshotKey {
pub raft_group_id: u32,
pub snapshot_id: String,
}Expand description
Identifier the store uses to derive a key/path for a snapshot blob.
snapshot_id is the openraft-provided id (group + leader + log index).
Repeated builds at the same applied index may reuse it, so stores must not
treat it as a unique physical-object identity.
Fields§
§raft_group_id: u32§snapshot_id: StringTrait Implementations§
Source§impl Clone for SnapshotKey
impl Clone for SnapshotKey
Source§fn clone(&self) -> SnapshotKey
fn clone(&self) -> SnapshotKey
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 SnapshotKey
impl Debug for SnapshotKey
impl Eq for SnapshotKey
Source§impl Hash for SnapshotKey
impl Hash for SnapshotKey
Source§impl PartialEq for SnapshotKey
impl PartialEq for SnapshotKey
impl StructuralPartialEq for SnapshotKey
Auto Trait Implementations§
impl Freeze for SnapshotKey
impl RefUnwindSafe for SnapshotKey
impl Send for SnapshotKey
impl Sync for SnapshotKey
impl Unpin for SnapshotKey
impl UnsafeUnpin for SnapshotKey
impl UnwindSafe for SnapshotKey
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