pub struct KeyInfo {
pub id: usize,
pub primary_key_id: Option<usize>,
pub key_id: String,
pub raw_key: Option<String>,
pub public_key: String,
pub created_at: String,
pub expires_at: Option<String>,
pub can_sign: bool,
pub can_encrypt_comms: bool,
pub can_encrypt_storage: bool,
pub can_certify: bool,
}
Expand description
Contains general info about a key, including:
- The public key,
- Its creation and (optional) expiration date,
- Whether it can sign,
- What it can (and can’t) encrypt,
- etc.
Fields§
§id: usize
§primary_key_id: Option<usize>
§key_id: String
§raw_key: Option<String>
§public_key: String
§created_at: String
§expires_at: Option<String>
§can_sign: bool
§can_encrypt_comms: bool
§can_encrypt_storage: bool
§can_certify: bool
Trait Implementations§
source§impl<'de> Deserialize<'de> for KeyInfo
impl<'de> Deserialize<'de> for KeyInfo
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
Auto Trait Implementations§
impl RefUnwindSafe for KeyInfo
impl Send for KeyInfo
impl Sync for KeyInfo
impl Unpin for KeyInfo
impl UnwindSafe for KeyInfo
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