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),
guaranteed unique per snapshot build attempt.
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
Source§fn eq(&self, other: &SnapshotKey) -> bool
fn eq(&self, other: &SnapshotKey) -> bool
Tests for
self and other values to be equal, and is used by ==.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.