pub struct PersistKey<'a> {
pub realm: u64,
pub kind: PersistKind,
pub key: &'a str,
}
Expand description
Key for a value in the persistence.
Fields§
§realm: u64
§kind: PersistKind
§key: &'a str
Implementations§
Source§impl<'a> PersistKey<'a>
impl<'a> PersistKey<'a>
Sourcepub fn new(realm: &str, kind: PersistKind, key: &'a str) -> Self
pub fn new(realm: &str, kind: PersistKind, key: &'a str) -> Self
Create a new key under a “realm”, kind and key. The realm is an opaque hash of the given realm string.
The realm is in normally defined as the account contact email, however it depends
on how the Account
object is accessed, see account_with_realm
.
Trait Implementations§
Source§impl<'a> Clone for PersistKey<'a>
impl<'a> Clone for PersistKey<'a>
Source§fn clone(&self) -> PersistKey<'a>
fn clone(&self) -> PersistKey<'a>
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<'a> Debug for PersistKey<'a>
impl<'a> Debug for PersistKey<'a>
Source§impl<'a> Display for PersistKey<'a>
impl<'a> Display for PersistKey<'a>
Source§impl<'a> Hash for PersistKey<'a>
impl<'a> Hash for PersistKey<'a>
Source§impl<'a> PartialEq for PersistKey<'a>
impl<'a> PartialEq for PersistKey<'a>
impl<'a> Copy for PersistKey<'a>
impl<'a> Eq for PersistKey<'a>
impl<'a> StructuralPartialEq for PersistKey<'a>
Auto Trait Implementations§
impl<'a> Freeze for PersistKey<'a>
impl<'a> RefUnwindSafe for PersistKey<'a>
impl<'a> Send for PersistKey<'a>
impl<'a> Sync for PersistKey<'a>
impl<'a> Unpin for PersistKey<'a>
impl<'a> UnwindSafe for PersistKey<'a>
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