pub struct CreateKeyRequestBuilder { /* private fields */ }
Expand description
Builder for CreateKeyRequest
.
Implementations§
source§impl CreateKeyRequestBuilder
impl CreateKeyRequestBuilder
pub fn mount<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Specifies the name of the encryption key to create.
sourcepub fn convergent_encryption<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn convergent_encryption<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
If enabled, the key will support convergent encryption, where the same plaintext creates the same ciphertext. This requires derived to be set to true. When enabled, each encryption(/decryption/rewrap/datakey) operation will derive a nonce value rather than randomly generate it.
sourcepub fn derived<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn derived<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Specifies if key derivation is to be used. If enabled, all encrypt/decrypt requests to this named key must provide a context which is used for key derivation.
sourcepub fn exportable<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn exportable<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Enables keys to be exportable. This allows for all the valid keys in the key ring to be exported. Once set, this cannot be disabled.
sourcepub fn allow_plaintext_backup<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn allow_plaintext_backup<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
If set, enables taking backup of named key in the plaintext format. Once set, this cannot be disabled.
sourcepub fn key_type<VALUE: Into<KeyType>>(&mut self, value: VALUE) -> &mut Self
pub fn key_type<VALUE: Into<KeyType>>(&mut self, value: VALUE) -> &mut Self
Specifies the type of key to create.
sourcepub fn auto_rotate_period<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn auto_rotate_period<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
The period at which this key should be rotated automatically. Setting this to “0” (the default) will disable automatic key rotation. This value cannot be shorter than one hour.
sourcepub fn build(&self) -> Result<CreateKeyRequest, CreateKeyRequestBuilderError>
pub fn build(&self) -> Result<CreateKeyRequest, CreateKeyRequestBuilderError>
Trait Implementations§
source§impl Clone for CreateKeyRequestBuilder
impl Clone for CreateKeyRequestBuilder
source§fn clone(&self) -> CreateKeyRequestBuilder
fn clone(&self) -> CreateKeyRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateKeyRequestBuilder
impl RefUnwindSafe for CreateKeyRequestBuilder
impl Send for CreateKeyRequestBuilder
impl Sync for CreateKeyRequestBuilder
impl Unpin for CreateKeyRequestBuilder
impl UnwindSafe for CreateKeyRequestBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)