[][src]Struct acme_lib::persist::PersistKey

pub struct PersistKey<'a> {
    pub realm: u64,
    pub kind: PersistKind,
    pub key: &'a str,
}

Key for a value in the persistence.

Fields

realm: u64kind: PersistKindkey: &'a str

Methods

impl<'a> PersistKey<'a>[src]

pub fn new(realm: &str, kind: PersistKind, key: &'a str) -> Self[src]

Create a new key under a "realm", kind and key. The realm is an opaque hash of the given realm string.

The realm is currently defined as the account contact email, but this might change.

pub fn to_string(&self) -> String[src]

Make a string representation of this key. Same as the Display trait.

Trait Implementations

impl<'a> Copy for PersistKey<'a>[src]

impl<'a> PartialEq<PersistKey<'a>> for PersistKey<'a>[src]

impl<'a> Clone for PersistKey<'a>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Eq for PersistKey<'a>[src]

impl<'a> Display for PersistKey<'a>[src]

impl<'a> Debug for PersistKey<'a>[src]

impl<'a> Hash for PersistKey<'a>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl<'a> Send for PersistKey<'a>

impl<'a> Sync for PersistKey<'a>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.