pub struct KeyConfig {
pub key_type: KeyType,
pub supports_encryption: bool,
pub supports_decryption: bool,
pub supports_derivation: bool,
pub exportable: bool,
pub deletion_allowed: bool,
}Expand description
Configuration for creating a new transit key.
Fields§
§key_type: KeyTypeKey type (default: AES-256-GCM).
supports_encryption: boolAllow encryption operations (default: true).
supports_decryption: boolAllow decryption operations (default: true).
supports_derivation: boolAllow key derivation (default: false).
exportable: boolAllow key export (default: false).
deletion_allowed: boolAllow key deletion (default: false).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyConfig
impl RefUnwindSafe for KeyConfig
impl Send for KeyConfig
impl Sync for KeyConfig
impl Unpin for KeyConfig
impl UnsafeUnpin for KeyConfig
impl UnwindSafe for KeyConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more