pub struct SecretKeyParamsBuilder { /* private fields */ }
Expand description
Builder for SecretKeyParams
.
Implementations§
Source§impl SecretKeyParamsBuilder
impl SecretKeyParamsBuilder
pub fn key_type(&mut self, value: KeyType) -> &mut Self
pub fn can_sign(&mut self, value: bool) -> &mut Self
pub fn can_certify(&mut self, value: bool) -> &mut Self
pub fn can_encrypt(&mut self, value: bool) -> &mut Self
Sourcepub fn preferred_symmetric_algorithms(
&mut self,
value: SmallVec<[SymmetricKeyAlgorithm; 8]>,
) -> &mut Self
pub fn preferred_symmetric_algorithms( &mut self, value: SmallVec<[SymmetricKeyAlgorithm; 8]>, ) -> &mut Self
List of symmetric algorithms that indicate which algorithms the key holder prefers to use.
Sourcepub fn preferred_hash_algorithms(
&mut self,
value: SmallVec<[HashAlgorithm; 8]>,
) -> &mut Self
pub fn preferred_hash_algorithms( &mut self, value: SmallVec<[HashAlgorithm; 8]>, ) -> &mut Self
List of hash algorithms that indicate which algorithms the key holder prefers to use.
Sourcepub fn preferred_compression_algorithms(
&mut self,
value: SmallVec<[CompressionAlgorithm; 8]>,
) -> &mut Self
pub fn preferred_compression_algorithms( &mut self, value: SmallVec<[CompressionAlgorithm; 8]>, ) -> &mut Self
List of compression algorithms that indicate which algorithms the key holder prefers to use.
pub fn preferred_aead_algorithms( &mut self, value: SmallVec<[(SymmetricKeyAlgorithm, AeadAlgorithm); 4]>, ) -> &mut Self
pub fn revocation_key(&mut self, value: Option<RevocationKey>) -> &mut Self
pub fn primary_user_id(&mut self, value: String) -> &mut Self
pub fn user_ids(&mut self, value: Vec<String>) -> &mut Self
pub fn user_attributes(&mut self, value: Vec<UserAttribute>) -> &mut Self
pub fn passphrase(&mut self, value: Option<String>) -> &mut Self
pub fn s2k(&mut self, value: Option<S2kParams>) -> &mut Self
pub fn created_at(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn packet_version(&mut self, value: Version) -> &mut Self
pub fn version(&mut self, value: KeyVersion) -> &mut Self
pub fn expiration(&mut self, value: Option<Duration>) -> &mut Self
pub fn subkeys(&mut self, value: Vec<SubkeyParams>) -> &mut Self
Sourcepub fn build(&self) -> Result<SecretKeyParams, SecretKeyParamsBuilderError>
pub fn build(&self) -> Result<SecretKeyParams, SecretKeyParamsBuilderError>
Trait Implementations§
Source§impl Clone for SecretKeyParamsBuilder
impl Clone for SecretKeyParamsBuilder
Source§fn clone(&self) -> SecretKeyParamsBuilder
fn clone(&self) -> SecretKeyParamsBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SecretKeyParamsBuilder
impl RefUnwindSafe for SecretKeyParamsBuilder
impl Send for SecretKeyParamsBuilder
impl Sync for SecretKeyParamsBuilder
impl Unpin for SecretKeyParamsBuilder
impl UnwindSafe for SecretKeyParamsBuilder
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