[−][src]Struct pgp::composed::key::SecretKeyParamsBuilder
Builder for SecretKeyParams
.
Methods
impl SecretKeyParamsBuilder
[src]
pub fn key_type(&mut self, value: KeyType) -> &mut Self
[src]
pub fn can_sign(&mut self, value: bool) -> &mut Self
[src]
pub fn can_create_certificates(&mut self, value: bool) -> &mut Self
[src]
pub fn can_encrypt(&mut self, value: bool) -> &mut Self
[src]
pub fn preferred_symmetric_algorithms(
&mut self,
value: SmallVec<[SymmetricKeyAlgorithm; 8]>
) -> &mut Self
[src]
&mut self,
value: SmallVec<[SymmetricKeyAlgorithm; 8]>
) -> &mut Self
List of symmetric algorithms that indicate which algorithms the key holder prefers to use.
pub fn preferred_hash_algorithms(
&mut self,
value: SmallVec<[HashAlgorithm; 8]>
) -> &mut Self
[src]
&mut self,
value: SmallVec<[HashAlgorithm; 8]>
) -> &mut Self
List of hash algorithms that indicate which algorithms the key holder prefers to use.
pub fn preferred_compression_algorithms(
&mut self,
value: SmallVec<[CompressionAlgorithm; 8]>
) -> &mut Self
[src]
&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
[src]
pub fn primary_user_id(&mut self, value: String) -> &mut Self
[src]
pub fn user_ids(&mut self, value: Vec<String>) -> &mut Self
[src]
pub fn user_attributes(&mut self, value: Vec<UserAttribute>) -> &mut Self
[src]
pub fn passphrase(&mut self, value: Option<String>) -> &mut Self
[src]
pub fn created_at(&mut self, value: DateTime<Utc>) -> &mut Self
[src]
pub fn packet_version(&mut self, value: Version) -> &mut Self
[src]
pub fn version(&mut self, value: KeyVersion) -> &mut Self
[src]
pub fn expiration(&mut self, value: Option<Duration>) -> &mut Self
[src]
pub fn subkeys(&mut self, value: Vec<SubkeyParams>) -> &mut Self
[src]
pub fn build(&self) -> Result<SecretKeyParams, String>
[src]
impl SecretKeyParamsBuilder
[src]
pub fn user_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
[src]
pub fn subkey<VALUE: Into<SubkeyParams>>(&mut self, value: VALUE) -> &mut Self
[src]
Trait Implementations
impl Clone for SecretKeyParamsBuilder
[src]
fn clone(&self) -> SecretKeyParamsBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for SecretKeyParamsBuilder
[src]
fn default() -> SecretKeyParamsBuilder
[src]
Auto Trait Implementations
impl Send for SecretKeyParamsBuilder
impl Sync for SecretKeyParamsBuilder
impl Unpin for SecretKeyParamsBuilder
impl UnwindSafe for SecretKeyParamsBuilder
impl RefUnwindSafe for SecretKeyParamsBuilder
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
[src]
T: InitializableFromZeroed + ?Sized,
impl<T> InitializableFromZeroed for T where
T: Default,
[src]
T: Default,
unsafe fn initialize(place: *mut T)
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,