Struct NewOrder

Source
pub struct NewOrder<'a> { /* private fields */ }
Expand description

Input data for Order creation

To be passed into Account::new_order().

Implementations§

Source§

impl<'a> NewOrder<'a>

Source

pub fn new(identifiers: &'a [Identifier]) -> Self

Prepare to create a new order for the given identifiers

To be passed into Account::new_order().

Source

pub fn replaces(self, replaces: CertificateIdentifier<'a>) -> Self

Indicate to the ACME server that the NewOrder is replacing a previously issued certificate

The previously issued certificate must be identified by a EncodedCertificateIdentifier.

Some ACME servers may give preferential rate limits to orders that replace existing certificates, or use this information to determine when it is safe to revoke a certificate affected by a compliance incident.

When provided, at least one of the identifiers for the new order must have been present in the certificate being replaced. If the ACME CA does not support the ACME renewal information (ARI) extension, the crate::Account::new_order() method will return an error.

Source

pub fn profile(self, profile: &'a str) -> Self

Set the profile to be used for the order

Account::new_order() will yield an error if the ACME server does not support the profiles extension or if the specified profile is not supported.

Source

pub fn identifiers(&self) -> &[Identifier]

Identifiers to be included in the order

Trait Implementations§

Source§

impl<'a> Debug for NewOrder<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Serialize for NewOrder<'a>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for NewOrder<'a>

§

impl<'a> RefUnwindSafe for NewOrder<'a>

§

impl<'a> Send for NewOrder<'a>

§

impl<'a> Sync for NewOrder<'a>

§

impl<'a> Unpin for NewOrder<'a>

§

impl<'a> UnwindSafe for NewOrder<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more