pub type OneTimeKeyId = KeyId<OneTimeKeyAlgorithm, OneTimeKeyName>;
Expand description
Algorithm + key name for one-time and fallback keys.
Aliased Type§
struct OneTimeKeyId(/* private fields */);
Implementations
Source§impl<A: KeyAlgorithm, K: KeyName + ?Sized> KeyId<A, K>
impl<A: KeyAlgorithm, K: KeyName + ?Sized> KeyId<A, K>
Sourcepub fn parse(s: impl AsRef<str>) -> Result<OwnedKeyId<A, K>, IdParseError>
pub fn parse(s: impl AsRef<str>) -> Result<OwnedKeyId<A, K>, IdParseError>
Try parsing a &str
into an OwnedKeyId
.
The same can also be done using FromStr
, TryFrom
or TryInto
.
This function is simply more constrained and thus useful in generic contexts.
Sourcepub fn parse_box(
s: impl AsRef<str> + Into<Box<str>>,
) -> Result<Box<Self>, IdParseError>
pub fn parse_box( s: impl AsRef<str> + Into<Box<str>>, ) -> Result<Box<Self>, IdParseError>
Try parsing a &str
into a Box<KeyId>
.
The same can also be done using FromStr
, TryFrom
or TryInto
.
This function is simply more constrained and thus useful in generic contexts.
Source§impl<A: KeyAlgorithm, K: KeyName + ?Sized> KeyId<A, K>
impl<A: KeyAlgorithm, K: KeyName + ?Sized> KeyId<A, K>
Sourcepub fn from_parts(algorithm: A, key_name: &K) -> OwnedKeyId<A, K>
pub fn from_parts(algorithm: A, key_name: &K) -> OwnedKeyId<A, K>
Creates a new KeyId
from an algorithm and key name.
Trait Implementations
Source§impl<A: KeyAlgorithm, K: KeyName + ?Sized> PartialEq<OwnedKeyId<A, K>> for KeyId<A, K>
impl<A: KeyAlgorithm, K: KeyName + ?Sized> PartialEq<OwnedKeyId<A, K>> for KeyId<A, K>
Source§impl<A: KeyAlgorithm, K: KeyName + ?Sized> PartialOrd for KeyId<A, K>
impl<A: KeyAlgorithm, K: KeyName + ?Sized> PartialOrd for KeyId<A, K>
Source§impl<A: KeyAlgorithm, K: KeyName + ?Sized> ToOwned for KeyId<A, K>
impl<A: KeyAlgorithm, K: KeyName + ?Sized> ToOwned for KeyId<A, K>
Source§type Owned = OwnedKeyId<A, K>
type Owned = OwnedKeyId<A, K>
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more