pub enum PrivateKeyInput {
Jwk(Value),
Pem(String),
}Expand description
Where a private key comes from.
Variants§
Jwk(Value)
A private JWK (RFC 7517) as JSON: EC P-256 with x, y, d; RSA with n, e, d, p and q.
Pem(String)
An unencrypted PKCS#8 PEM (-----BEGIN PRIVATE KEY-----).
Trait Implementations§
Source§impl Clone for PrivateKeyInput
impl Clone for PrivateKeyInput
Source§fn clone(&self) -> PrivateKeyInput
fn clone(&self) -> PrivateKeyInput
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 moreAuto Trait Implementations§
impl Freeze for PrivateKeyInput
impl RefUnwindSafe for PrivateKeyInput
impl Send for PrivateKeyInput
impl Sync for PrivateKeyInput
impl Unpin for PrivateKeyInput
impl UnsafeUnpin for PrivateKeyInput
impl UnwindSafe for PrivateKeyInput
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