Struct tokio_rustls_acme::acme::Account
source · pub struct Account {
pub key_pair: EcdsaKeyPair,
pub directory: Directory,
pub kid: String,
}
Fields§
§key_pair: EcdsaKeyPair
§directory: Directory
§kid: String
Implementations§
source§impl Account
impl Account
pub fn generate_key_pair() -> Vec<u8> ⓘ
pub async fn create<'a, S, I>( client_config: &Arc<ClientConfig>, directory: Directory, contact: I, ) -> Result<Self, AcmeError>
pub async fn create_with_keypair<'a, S, I>( client_config: &Arc<ClientConfig>, directory: Directory, contact: I, key_pair: &[u8], ) -> Result<Self, AcmeError>
pub async fn new_order( &self, client_config: &Arc<ClientConfig>, domains: Vec<String>, ) -> Result<(String, Order), AcmeError>
pub async fn auth( &self, client_config: &Arc<ClientConfig>, url: impl AsRef<str>, ) -> Result<Auth, AcmeError>
pub async fn challenge( &self, client_config: &Arc<ClientConfig>, url: impl AsRef<str>, ) -> Result<(), AcmeError>
pub async fn order( &self, client_config: &Arc<ClientConfig>, url: impl AsRef<str>, ) -> Result<Order, AcmeError>
pub async fn finalize( &self, client_config: &Arc<ClientConfig>, url: impl AsRef<str>, csr: Vec<u8>, ) -> Result<Order, AcmeError>
pub async fn certificate( &self, client_config: &Arc<ClientConfig>, url: impl AsRef<str>, ) -> Result<String, AcmeError>
pub fn tls_alpn_01<'a>( &self, challenges: &'a [Challenge], domain: String, ) -> Result<(&'a Challenge, CertifiedKey), AcmeError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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