pub struct GpgKey {Show 15 fields
pub id: i32,
pub name: Option<Option<String>>,
pub primary_key_id: Option<i32>,
pub key_id: String,
pub public_key: String,
pub emails: Vec<GpgKeyEmailsInner>,
pub subkeys: Vec<GpgKeySubkeysInner>,
pub can_sign: bool,
pub can_encrypt_comms: bool,
pub can_encrypt_storage: bool,
pub can_certify: bool,
pub created_at: String,
pub expires_at: Option<String>,
pub revoked: bool,
pub raw_key: Option<String>,
}
Expand description
GpgKey : A unique encryption key
Fields§
§id: i32
§name: Option<Option<String>>
§primary_key_id: Option<i32>
§key_id: String
§public_key: String
§emails: Vec<GpgKeyEmailsInner>
§subkeys: Vec<GpgKeySubkeysInner>
§can_sign: bool
§can_encrypt_comms: bool
§can_encrypt_storage: bool
§can_certify: bool
§created_at: String
§expires_at: Option<String>
§revoked: bool
§raw_key: Option<String>
Implementations§
Source§impl GpgKey
impl GpgKey
Sourcepub fn new(
id: i32,
primary_key_id: Option<i32>,
key_id: String,
public_key: String,
emails: Vec<GpgKeyEmailsInner>,
subkeys: Vec<GpgKeySubkeysInner>,
can_sign: bool,
can_encrypt_comms: bool,
can_encrypt_storage: bool,
can_certify: bool,
created_at: String,
expires_at: Option<String>,
revoked: bool,
raw_key: Option<String>,
) -> GpgKey
pub fn new( id: i32, primary_key_id: Option<i32>, key_id: String, public_key: String, emails: Vec<GpgKeyEmailsInner>, subkeys: Vec<GpgKeySubkeysInner>, can_sign: bool, can_encrypt_comms: bool, can_encrypt_storage: bool, can_certify: bool, created_at: String, expires_at: Option<String>, revoked: bool, raw_key: Option<String>, ) -> GpgKey
A unique encryption key
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GpgKey
impl<'de> Deserialize<'de> for GpgKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for GpgKey
Auto Trait Implementations§
impl Freeze for GpgKey
impl RefUnwindSafe for GpgKey
impl Send for GpgKey
impl Sync for GpgKey
impl Unpin for GpgKey
impl UnwindSafe for GpgKey
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