[−][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
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,