pub struct AsymmetricSecretKey<V> { /* private fields */ }
Expand description
An asymmetric secret key used for .public
tokens, given a version V
.
In case of Ed25519, which is used in V2 and V4, this is the seed concatenated with the public key.
Implementations§
Trait Implementations§
Source§impl<V: Clone> Clone for AsymmetricSecretKey<V>
impl<V: Clone> Clone for AsymmetricSecretKey<V>
Source§fn clone(&self) -> AsymmetricSecretKey<V>
fn clone(&self) -> AsymmetricSecretKey<V>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<V> Debug for AsymmetricSecretKey<V>
impl<V> Debug for AsymmetricSecretKey<V>
Source§impl<'de, V> Deserialize<'de> for AsymmetricSecretKey<V>where
AsymmetricSecretKey<V>: TryFrom<&'de str>,
<AsymmetricSecretKey<V> as TryFrom<&'de str>>::Error: Display,
Available on crate features serde
and std
only.
impl<'de, V> Deserialize<'de> for AsymmetricSecretKey<V>where
AsymmetricSecretKey<V>: TryFrom<&'de str>,
<AsymmetricSecretKey<V> as TryFrom<&'de str>>::Error: Display,
Available on crate features
serde
and std
only.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
Source§impl<V> Drop for AsymmetricSecretKey<V>
impl<V> Drop for AsymmetricSecretKey<V>
Source§impl FormatAsPaserk for AsymmetricSecretKey<V2>
Available on crate feature paserk
only.
impl FormatAsPaserk for AsymmetricSecretKey<V2>
Available on crate feature
paserk
only.Source§impl FormatAsPaserk for AsymmetricSecretKey<V3>
Available on crate feature paserk
only.
impl FormatAsPaserk for AsymmetricSecretKey<V3>
Available on crate feature
paserk
only.Source§impl FormatAsPaserk for AsymmetricSecretKey<V4>
Available on crate feature paserk
only.
impl FormatAsPaserk for AsymmetricSecretKey<V4>
Available on crate feature
paserk
only.Source§impl From<&AsymmetricSecretKey<V2>> for Id
Available on crate feature paserk
only.
impl From<&AsymmetricSecretKey<V2>> for Id
Available on crate feature
paserk
only.Source§fn from(key: &AsymmetricSecretKey<V2>) -> Self
fn from(key: &AsymmetricSecretKey<V2>) -> Self
Converts to this type from the input type.
Source§impl From<&AsymmetricSecretKey<V3>> for Id
Available on crate feature paserk
only.
impl From<&AsymmetricSecretKey<V3>> for Id
Available on crate feature
paserk
only.Source§fn from(key: &AsymmetricSecretKey<V3>) -> Self
fn from(key: &AsymmetricSecretKey<V3>) -> Self
Converts to this type from the input type.
Source§impl From<&AsymmetricSecretKey<V4>> for Id
Available on crate feature paserk
only.
impl From<&AsymmetricSecretKey<V4>> for Id
Available on crate feature
paserk
only.Source§fn from(key: &AsymmetricSecretKey<V4>) -> Self
fn from(key: &AsymmetricSecretKey<V4>) -> Self
Converts to this type from the input type.
Source§impl<V: Version> PartialEq for AsymmetricSecretKey<V>
impl<V: Version> PartialEq for AsymmetricSecretKey<V>
Source§impl<V> Serialize for AsymmetricSecretKey<V>where
AsymmetricSecretKey<V>: FormatAsPaserk,
Available on crate features paserk
and serde
only.
impl<V> Serialize for AsymmetricSecretKey<V>where
AsymmetricSecretKey<V>: FormatAsPaserk,
Available on crate features
paserk
and serde
only.Source§impl TryFrom<&AsymmetricSecretKey<V2>> for AsymmetricPublicKey<V2>
Available on crate feature v2
only.
impl TryFrom<&AsymmetricSecretKey<V2>> for AsymmetricPublicKey<V2>
Available on crate feature
v2
only.Source§impl TryFrom<&AsymmetricSecretKey<V3>> for AsymmetricPublicKey<V3>
Available on crate feature v3
only.
impl TryFrom<&AsymmetricSecretKey<V3>> for AsymmetricPublicKey<V3>
Available on crate feature
v3
only.Source§impl TryFrom<&AsymmetricSecretKey<V4>> for AsymmetricPublicKey<V4>
Available on crate feature v4
only.
impl TryFrom<&AsymmetricSecretKey<V4>> for AsymmetricPublicKey<V4>
Available on crate feature
v4
only.Auto Trait Implementations§
impl<V> Freeze for AsymmetricSecretKey<V>
impl<V> RefUnwindSafe for AsymmetricSecretKey<V>where
V: RefUnwindSafe,
impl<V> Send for AsymmetricSecretKey<V>where
V: Send,
impl<V> Sync for AsymmetricSecretKey<V>where
V: Sync,
impl<V> Unpin for AsymmetricSecretKey<V>where
V: Unpin,
impl<V> UnwindSafe for AsymmetricSecretKey<V>where
V: UnwindSafe,
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