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>
impl<'a> NewOrder<'a>
Sourcepub fn new(identifiers: &'a [Identifier]) -> Self
pub fn new(identifiers: &'a [Identifier]) -> Self
Prepare to create a new order for the given identifiers
To be passed into Account::new_order().
Sourcepub fn replaces(self, replaces: CertificateIdentifier<'a>) -> Self
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.
Sourcepub fn profile(self, profile: &'a str) -> Self
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.
Sourcepub fn identifiers(&self) -> &[Identifier]
pub fn identifiers(&self) -> &[Identifier]
Identifiers to be included in the order