pub struct SecretKeyParamsBuilder { /* private fields */ }
Expand description
Builder for SecretKeyParams
.
Implementations
sourceimpl 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_create_certificates(&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 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 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
Trait Implementations
sourceimpl Clone for SecretKeyParamsBuilder
impl Clone for SecretKeyParamsBuilder
sourcefn clone(&self) -> SecretKeyParamsBuilder
fn clone(&self) -> SecretKeyParamsBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for SecretKeyParamsBuilder
impl Default for SecretKeyParamsBuilder
sourcefn default() -> SecretKeyParamsBuilder
fn default() -> SecretKeyParamsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SecretKeyParamsBuilder
impl Send for SecretKeyParamsBuilder
impl Sync for SecretKeyParamsBuilder
impl Unpin for SecretKeyParamsBuilder
impl UnwindSafe for SecretKeyParamsBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more