pub struct SigningKey {
    pub kind: SigningKeyKind,
    pub key: Vec<u8>,
}
Expand description

A signing key of some type.

Fields

kind: SigningKeyKindkey: Vec<u8>

Implementations

Convert this key into the specified kind of key.

This function returns an error if the existing key cannot be derived into the dervied key kind.

Return a KService key given a KService, KRegion, KDate, or KSecret key.

This function returns an error if given a KSigning key.

Return a KRegion key given a KRegion, KDate, or KSecret key.

This function returns an error if given a KSigning or KService key.

Return a KDate key given a KDate or KSecret key.

This function returns an error if given a KRegion, KSigning, or KService key.

Convert this key into the specified kind of key.

This function panics if the existing key cannot be derived into the dervied key kind. Use try_derive for a non-panicking version.

Return a KSigning key given a KSigning, KService, KRegion, KDate, or KSecret key.

This function is infallible (does not panic).

Return a KService key given a KService, KRegion, KDate, or KSecret key.

This function panics an error if given a KSigning key. Use try_to_kservice_key for a non-panicking version,.

Return a KRegion key given a KRegion, KDate, or KSecret key.

This function panics if given a KSigning or KService key. Use try_to_kregion_key for a for a non-panicking version.

Return a KDate key given a KDate or KSecret key.

This function panics if given a KRegion, KSigning, or KService key. Use try_to_kdate_key for a non-panicking version.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.