Struct pgp::composed::key::SubkeyParamsBuilder
source · 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_create_certificates(&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 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 copy 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 more