Skip to main content

CertificateResponseBuilder

Struct CertificateResponseBuilder 

Source
pub struct CertificateResponseBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<S: State> CertificateResponseBuilder<S>

Source

pub fn build(self) -> CertificateResponse
where S: IsComplete,

Finish building and return the requested object

Source

pub fn chain(self, value: String) -> CertificateResponseBuilder<SetChain<S>>
where S::Chain: IsUnset,

Optional (Some / Option setters). The chain, PEM, once Canopy holds one — including while a renewal is under way, the chain in hand staying valid until the new one lands.

Source

pub fn maybe_chain( self, value: Option<String>, ) -> CertificateResponseBuilder<SetChain<S>>
where S::Chain: IsUnset,

Optional (Some / Option setters). The chain, PEM, once Canopy holds one — including while a renewal is under way, the chain in hand staying valid until the new one lands.

Source

pub fn key_must_be_replaced( self, value: bool, ) -> CertificateResponseBuilder<SetKeyMustBeReplaced<S>>
where S::KeyMustBeReplaced: IsUnset,

Required.

Whether the key must be replaced before asking again, rather than just the certificate.

Source

pub fn last_error( self, value: String, ) -> CertificateResponseBuilder<SetLastError<S>>
where S::LastError: IsUnset,

Optional (Some / Option setters). Why the last attempt failed, if one did. Present while Canopy is still retrying.

Source

pub fn maybe_last_error( self, value: Option<String>, ) -> CertificateResponseBuilder<SetLastError<S>>
where S::LastError: IsUnset,

Optional (Some / Option setters). Why the last attempt failed, if one did. Present while Canopy is still retrying.

Source

pub fn name(self, value: String) -> CertificateResponseBuilder<SetName<S>>
where S::Name: IsUnset,

Required.

The name the certificate is (or will be) for, as Canopy normalised it.

Source

pub fn not_after( self, value: String, ) -> CertificateResponseBuilder<SetNotAfter<S>>
where S::NotAfter: IsUnset,

Optional (Some / Option setters). When it expires.

Source

pub fn maybe_not_after( self, value: Option<String>, ) -> CertificateResponseBuilder<SetNotAfter<S>>
where S::NotAfter: IsUnset,

Optional (Some / Option setters). When it expires.

Source

pub fn profile(self, value: String) -> CertificateResponseBuilder<SetProfile<S>>
where S::Profile: IsUnset,

Optional (Some / Option setters). The profile it was issued under, if the authority named one.

Source

pub fn maybe_profile( self, value: Option<String>, ) -> CertificateResponseBuilder<SetProfile<S>>
where S::Profile: IsUnset,

Optional (Some / Option setters). The profile it was issued under, if the authority named one.

Source

pub fn revoked(self, value: bool) -> CertificateResponseBuilder<SetRevoked<S>>
where S::Revoked: IsUnset,

Required.

Whether an operator revoked it. Stop serving it and ask again.

Source

pub fn state(self, value: String) -> CertificateResponseBuilder<SetState<S>>
where S::State: IsUnset,

Required.

pending, issued, failed, or revoked.

Source

pub fn usable(self, value: bool) -> CertificateResponseBuilder<SetUsable<S>>
where S::Usable: IsUnset,

Required.

Whether the chain can be served now.

Auto Trait Implementations§

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<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, 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 = !

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

fn try_from(value: U) -> Result<T, !>

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.