[−][src]Struct acme2::Authorization
An autorization represents the server's authorization of a certain domain being represented by an account.
Fields
identifier: Identifier
The identifier (domain) that the account is authorized to represent.
status: AuthorizationStatus
The status of this authorization.
expires: Option<String>
The timestamp after which the server will consider this authorization invalid.
challenges: Vec<Challenge>
For pending authorizations, the challenges that the client can fulfill in order to prove possession of the identifier. For valid authorizations, the challenge that was validated. For invalid authorizations, the challenge that was attempted and failed.
wildcard: Option<bool>
Whether this authorization was created for a wildcard identifier (domain).
Implementations
impl Authorization
[src]
pub fn get_challenge(&self, r#type: &str) -> Option<Challenge>
[src]
Get a certain type of challenge to complete.
Example: http-01
, or dns-01
pub async fn poll(self) -> Result<Authorization, Error>
[src]
Update the authorization to match the current server state.
Most users should use Authorization::wait_done
.
pub async fn wait_done(
self,
poll_interval: Duration
) -> Result<Authorization, Error>
[src]
self,
poll_interval: Duration
) -> Result<Authorization, Error>
Wait for the authorization to go into a state other than
AuthorizationStatus::Pending
.
This will only happen once one of the challenges in an authorization
is completed. You can use Challenge::wait_done
to wait until
this is the case.
Will complete immediately if the authorization is already in a
state other than AuthorizationStatus::Pending
.
Trait Implementations
impl Debug for Authorization
[src]
impl<'de> Deserialize<'de> for Authorization
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl !RefUnwindSafe for Authorization
[src]
impl Send for Authorization
[src]
impl Sync for Authorization
[src]
impl Unpin for Authorization
[src]
impl !UnwindSafe for Authorization
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,