[][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> Eq for PersistKey<'a>[src]

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

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

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

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

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

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

Auto Trait Implementations

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

impl<'a> Unpin for PersistKey<'a>

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

impl<'a> UnwindSafe for PersistKey<'a>

impl<'a> RefUnwindSafe for PersistKey<'a>

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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