pub struct UploadableKey { /* private fields */ }
Expand description
Private key material that can be uploaded to a card slot.
The data in an UploadableKey
corresponds to an OpenPGP secret key packet.
Implementations§
Trait Implementations§
Source§impl CardUploadableKey for UploadableKey
impl CardUploadableKey for UploadableKey
Source§fn private_key(&self) -> Result<PrivateKeyMaterial, Error>
fn private_key(&self) -> Result<PrivateKeyMaterial, Error>
private key data
Source§fn timestamp(&self) -> KeyGenerationTime
fn timestamp(&self) -> KeyGenerationTime
timestamp of (sub)key creation
Source§fn fingerprint(&self) -> Result<Fingerprint, Error>
fn fingerprint(&self) -> Result<Fingerprint, Error>
fingerprint
Source§impl From<SecretKey> for UploadableKey
impl From<SecretKey> for UploadableKey
Source§impl From<SecretSubkey> for UploadableKey
impl From<SecretSubkey> for UploadableKey
Source§fn from(value: SecretSubkey) -> Self
fn from(value: SecretSubkey) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UploadableKey
impl RefUnwindSafe for UploadableKey
impl Send for UploadableKey
impl Sync for UploadableKey
impl Unpin for UploadableKey
impl UnwindSafe for UploadableKey
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