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