pub struct DeviceKeyId(/* private fields */);Expand description
A key algorithm and a device id, combined with a ‘:’.
Implementations§
Source§impl DeviceKeyId
impl DeviceKeyId
Sourcepub fn parse(s: impl AsRef<str> + Into<Box<str>>) -> Result<Box<Self>, Error>
pub fn parse(s: impl AsRef<str> + Into<Box<str>>) -> Result<Box<Self>, Error>
Try parsing a &str into a Box<DeviceKeyId>.
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 DeviceKeyId
impl DeviceKeyId
Source§impl DeviceKeyId
impl DeviceKeyId
Sourcepub fn from_parts(
algorithm: DeviceKeyAlgorithm,
device_id: &DeviceId,
) -> Box<Self>
pub fn from_parts( algorithm: DeviceKeyAlgorithm, device_id: &DeviceId, ) -> Box<Self>
Create a DeviceKeyId from a DeviceKeyAlgorithm and a DeviceId.
Sourcepub fn algorithm(&self) -> DeviceKeyAlgorithm
pub fn algorithm(&self) -> DeviceKeyAlgorithm
Returns key algorithm of the device key ID.
Trait Implementations§
Source§impl AsRef<str> for DeviceKeyId
impl AsRef<str> for DeviceKeyId
Source§impl Clone for Box<DeviceKeyId>
impl Clone for Box<DeviceKeyId>
Source§impl Debug for DeviceKeyId
impl Debug for DeviceKeyId
Source§impl<'de> Deserialize<'de> for Box<DeviceKeyId>
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Box<DeviceKeyId>
Available on crate feature
serde 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 Display for DeviceKeyId
impl Display for DeviceKeyId
Source§impl From<&DeviceKeyId> for Arc<DeviceKeyId>
impl From<&DeviceKeyId> for Arc<DeviceKeyId>
Source§fn from(s: &DeviceKeyId) -> Arc<DeviceKeyId>
fn from(s: &DeviceKeyId) -> Arc<DeviceKeyId>
Converts to this type from the input type.
Source§impl From<&DeviceKeyId> for Box<DeviceKeyId>
impl From<&DeviceKeyId> for Box<DeviceKeyId>
Source§fn from(id: &DeviceKeyId) -> Self
fn from(id: &DeviceKeyId) -> Self
Converts to this type from the input type.
Source§impl From<&DeviceKeyId> for Rc<DeviceKeyId>
impl From<&DeviceKeyId> for Rc<DeviceKeyId>
Source§fn from(s: &DeviceKeyId) -> Rc<DeviceKeyId>
fn from(s: &DeviceKeyId) -> Rc<DeviceKeyId>
Converts to this type from the input type.
Source§impl FromStr for Box<DeviceKeyId>
impl FromStr for Box<DeviceKeyId>
Source§impl Hash for DeviceKeyId
impl Hash for DeviceKeyId
Source§impl Ord for DeviceKeyId
impl Ord for DeviceKeyId
Source§impl PartialEq<&DeviceKeyId> for Box<DeviceKeyId>
impl PartialEq<&DeviceKeyId> for Box<DeviceKeyId>
Source§impl PartialEq<&str> for DeviceKeyId
impl PartialEq<&str> for DeviceKeyId
Source§impl PartialEq<Box<DeviceKeyId>> for &DeviceKeyId
impl PartialEq<Box<DeviceKeyId>> for &DeviceKeyId
Source§impl PartialEq<Box<DeviceKeyId>> for DeviceKeyId
impl PartialEq<Box<DeviceKeyId>> for DeviceKeyId
Source§impl PartialEq<DeviceKeyId> for &str
impl PartialEq<DeviceKeyId> for &str
Source§impl PartialEq<DeviceKeyId> for Box<DeviceKeyId>
impl PartialEq<DeviceKeyId> for Box<DeviceKeyId>
Source§impl PartialEq<DeviceKeyId> for String
impl PartialEq<DeviceKeyId> for String
Source§impl PartialEq<DeviceKeyId> for str
impl PartialEq<DeviceKeyId> for str
Source§impl PartialEq<String> for DeviceKeyId
impl PartialEq<String> for DeviceKeyId
Source§impl PartialEq<str> for DeviceKeyId
impl PartialEq<str> for DeviceKeyId
Source§impl PartialEq for DeviceKeyId
impl PartialEq for DeviceKeyId
Source§impl PartialOrd for DeviceKeyId
impl PartialOrd for DeviceKeyId
Source§impl Serialize for DeviceKeyId
Available on crate feature serde only.
impl Serialize for DeviceKeyId
Available on crate feature
serde only.Source§impl ToOwned for DeviceKeyId
impl ToOwned for DeviceKeyId
Source§type Owned = Box<DeviceKeyId>
type Owned = Box<DeviceKeyId>
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