pub struct AcmeOrder {
pub status: AcmeOrderStatus,
pub finalize: Url,
pub identifiers: [AcmeIdentifier; 2],
pub authorizations: [Url; 2],
pub expires: Option<OffsetDateTime>,
pub not_before: Option<OffsetDateTime>,
pub not_after: Option<OffsetDateTime>,
}Expand description
Result of an order creation see RFC 8555 Section 7.4
Fields§
§status: AcmeOrderStatus§finalize: Url§identifiers: [AcmeIdentifier; 2]§expires: Option<OffsetDateTime>§not_before: Option<OffsetDateTime>§not_after: Option<OffsetDateTime>Implementations§
Source§impl AcmeOrder
impl AcmeOrder
pub fn verify(&self) -> RustyAcmeResult<()>
Sourcepub fn try_get_coalesce_identifier(
&self,
) -> RustyAcmeResult<CanonicalIdentifier>
pub fn try_get_coalesce_identifier( &self, ) -> RustyAcmeResult<CanonicalIdentifier>
A Wire Order has 2 identifiers. For simplification purposes, since they share most of their fields together we merge them to access the fields
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AcmeOrder
impl<'de> Deserialize<'de> for AcmeOrder
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 TryFrom<AcmeOrder> for E2eiAcmeOrder
impl TryFrom<AcmeOrder> for E2eiAcmeOrder
Source§type Error = E2eIdentityError
type Error = E2eIdentityError
The type returned in the event of a conversion error.
Source§fn try_from(order: AcmeOrder) -> E2eIdentityResult<Self>
fn try_from(order: AcmeOrder) -> E2eIdentityResult<Self>
Performs the conversion.
Source§impl TryFrom<E2eiAcmeOrder> for AcmeOrder
impl TryFrom<E2eiAcmeOrder> for AcmeOrder
Source§type Error = E2eIdentityError
type Error = E2eIdentityError
The type returned in the event of a conversion error.
Source§fn try_from(order: E2eiAcmeOrder) -> E2eIdentityResult<Self>
fn try_from(order: E2eiAcmeOrder) -> E2eIdentityResult<Self>
Performs the conversion.
impl Eq for AcmeOrder
impl StructuralPartialEq for AcmeOrder
Auto Trait Implementations§
impl Freeze for AcmeOrder
impl RefUnwindSafe for AcmeOrder
impl Send for AcmeOrder
impl Sync for AcmeOrder
impl Unpin for AcmeOrder
impl UnwindSafe for AcmeOrder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more