[−][src]Struct acme_lib::Directory
Entry point for accessing an ACME API.
Methods
impl<P: Persist> Directory<P>[src]
pub fn from_url(persist: P, url: DirectoryUrl) -> Result<Directory<P>>[src]
Create a directory over a persistence implementation and directory url.
pub fn account(&self, contact_email: &str) -> Result<Account<P>>[src]
Access an account identified by a contact email.
If a persisted private key exists for the contact email, it will be read and used for further access. This way we reuse the same ACME API account.
If one doesn't exist, it is created and the corresponding public key is uploaded to the ACME API thus creating the account.
Either way the newAccount API endpoint is called and thereby ensures the
account is active and working.
pub fn api_directory(&self) -> &ApiDirectory[src]
Access the underlying JSON object for debugging.
Trait Implementations
Auto Trait Implementations
impl<P> Send for Directory<P>
impl<P> Unpin for Directory<P> where
P: Unpin,
P: Unpin,
impl<P> Sync for Directory<P> where
P: Sync,
P: Sync,
impl<P> UnwindSafe for Directory<P> where
P: UnwindSafe,
P: UnwindSafe,
impl<P> RefUnwindSafe for Directory<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,