pub struct SubkeyParamsBuilder { /* private fields */ }
Expand description
Builder for SubkeyParams
.
Implementations§
Source§impl SubkeyParamsBuilder
impl SubkeyParamsBuilder
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
pub fn can_authenticate(&mut self, value: bool) -> &mut Self
pub fn user_ids(&mut self, value: Vec<UserId>) -> &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
Sourcepub fn build(&self) -> Result<SubkeyParams, SubkeyParamsBuilderError>
pub fn build(&self) -> Result<SubkeyParams, SubkeyParamsBuilderError>
Trait Implementations§
Source§impl Clone for SubkeyParamsBuilder
impl Clone for SubkeyParamsBuilder
Source§fn clone(&self) -> SubkeyParamsBuilder
fn clone(&self) -> SubkeyParamsBuilder
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 SubkeyParamsBuilder
impl RefUnwindSafe for SubkeyParamsBuilder
impl Send for SubkeyParamsBuilder
impl Sync for SubkeyParamsBuilder
impl Unpin for SubkeyParamsBuilder
impl UnwindSafe for SubkeyParamsBuilder
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