pub struct AcmeChallenge {
pub typ: AcmeChallengeType,
pub url: Url,
pub status: Option<AcmeChallengeStatus>,
pub token: String,
pub target: Url,
}Expand description
For creating a challenge see RFC 8555 Section 7.5.1
Fields§
§typ: AcmeChallengeTypeShould be wire-http-01 or wire-oidc-01
url: UrlURL to call for the acme server to complete the challenge
status: Option<AcmeChallengeStatus>Should be valid
token: StringThe acme challenge value to store in the Dpop token
target: UrlNon-standard, Wire specific claim. Indicates the consumer from where it should get the challenge proof. Either from wire-server “/access-token” endpoint in case of a DPoP challenge, or from an OAuth token endpoint for an OIDC challenge
Trait Implementations§
Source§impl Clone for AcmeChallenge
impl Clone for AcmeChallenge
Source§fn clone(&self) -> AcmeChallenge
fn clone(&self) -> AcmeChallenge
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AcmeChallenge
impl Debug for AcmeChallenge
Source§impl<'de> Deserialize<'de> for AcmeChallenge
impl<'de> Deserialize<'de> for AcmeChallenge
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AcmeChallenge
impl Serialize for AcmeChallenge
Source§impl TryFrom<AcmeChallenge> for E2eiAcmeChallenge
impl TryFrom<AcmeChallenge> for E2eiAcmeChallenge
Source§type Error = E2eIdentityError
type Error = E2eIdentityError
The type returned in the event of a conversion error.
Source§fn try_from(challenge: AcmeChallenge) -> E2eIdentityResult<Self>
fn try_from(challenge: AcmeChallenge) -> E2eIdentityResult<Self>
Performs the conversion.
Source§impl TryFrom<E2eiAcmeChallenge> for AcmeChallenge
impl TryFrom<E2eiAcmeChallenge> for AcmeChallenge
Source§type Error = E2eIdentityError
type Error = E2eIdentityError
The type returned in the event of a conversion error.
Source§fn try_from(chall: E2eiAcmeChallenge) -> E2eIdentityResult<Self>
fn try_from(chall: E2eiAcmeChallenge) -> E2eIdentityResult<Self>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AcmeChallenge
impl RefUnwindSafe for AcmeChallenge
impl Send for AcmeChallenge
impl Sync for AcmeChallenge
impl Unpin for AcmeChallenge
impl UnwindSafe for AcmeChallenge
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