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

A builder for key imports.

Implementations§

Imports a DER-encoded PKCS1 private key.

Imports a DER-encoded PKCS8 private key.

Imports a PEM-encoded PKCS8 private key. This functions decodes PEM blocks with or without “—–BEGIN PRIVATE KEY—–” and “—–END PRIVATE KEY—–” headers, but if PEM guards are present they must be exactly these.

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.

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.