pub enum SigningKeyHandle {
Software {
key_id: String,
algorithm: String,
},
Hardware {
key_id: String,
algorithm: String,
token: HardwareToken,
},
}Expand description
A reference to a signing key — either software-held or hardware-backed.
Variants§
Software
In-process software key.
Fields
Hardware
Hardware-backed key (HSM, YubiKey, TPM, OpenPGP card).
Trait Implementations§
Source§impl Clone for SigningKeyHandle
impl Clone for SigningKeyHandle
Source§fn clone(&self) -> SigningKeyHandle
fn clone(&self) -> SigningKeyHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SigningKeyHandle
impl Debug for SigningKeyHandle
Source§impl<'de> Deserialize<'de> for SigningKeyHandle
impl<'de> Deserialize<'de> for SigningKeyHandle
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 Freeze for SigningKeyHandle
impl RefUnwindSafe for SigningKeyHandle
impl Send for SigningKeyHandle
impl Sync for SigningKeyHandle
impl Unpin for SigningKeyHandle
impl UnsafeUnpin for SigningKeyHandle
impl UnwindSafe for SigningKeyHandle
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