pub struct Directory { /* private fields */ }
Expand description
Entry point for accessing an ACME API.
Implementations§
Source§impl Directory
impl Directory
Sourcepub fn from_url(url: DirectoryUrl<'_>) -> Result<Directory>
pub fn from_url(url: DirectoryUrl<'_>) -> Result<Directory>
Create a directory over a persistence implementation and directory url.
pub fn register_account(&self, contact: Vec<String>) -> Result<Account>
pub fn load_account(&self, pem: &str, contact: Vec<String>) -> Result<Account>
Sourcepub fn api_directory(&self) -> &ApiDirectory
pub fn api_directory(&self) -> &ApiDirectory
Access the underlying JSON object for debugging.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Directory
impl RefUnwindSafe for Directory
impl Send for Directory
impl Sync for Directory
impl Unpin for Directory
impl UnwindSafe for Directory
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