pub struct AuthCertBuilder { /* private fields */ }
Expand description

A builder object used to construct an authority certificate.

Create one of these with the AuthCert::builder method.

This facility is only enabled when the crate is built with the build_docs feature.

Implementations

Set the IPv4 address for this authority.

This field is optional.

Set the identity key for this authority.

This field is required.

Set the identity key for this certificate.

This field is required.

Set the lifespan for this certificate.

These fields are required.

Try to construct an AuthCert from this builder.

This function can fail if any of the builder’s fields are missing or ill-formed.

Danger

This function is dangerous because it can be used to construct a certificate where no certificate actually exists: The identity key here has not, in fact, attested to the signing key.

You should only use this function for testing.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.