pub type DeviceSignatures = Signatures<OwnedUserId, DeviceId>;
Expand description
Map of device signatures, grouped by user.
Aliased Type§
struct DeviceSignatures(/* private fields */);
Implementations
Source§impl<E: Ord, K: KeyName + ?Sized> Signatures<E, K>
impl<E: Ord, K: KeyName + ?Sized> Signatures<E, K>
Sourcepub fn insert_signature(
&mut self,
entity: E,
key_identifier: OwnedSigningKeyId<K>,
value: String,
) -> Option<String>
pub fn insert_signature( &mut self, entity: E, key_identifier: OwnedSigningKeyId<K>, value: String, ) -> Option<String>
Add a signature for the given entity and key identifier.
If there was already one, it is returned.
Trait Implementations
Source§impl<E, K> Clone for Signatures<E, K>
impl<E, K> Clone for Signatures<E, K>
Source§impl<'de, E, K: KeyName + ?Sized> Deserialize<'de> for Signatures<E, K>where
E: DeserializeOwned + Ord,
impl<'de, E, K: KeyName + ?Sized> Deserialize<'de> for Signatures<E, K>where
E: DeserializeOwned + Ord,
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<E: Ord, K: KeyName + ?Sized> Extend<(E, OwnedKeyId<SigningKeyAlgorithm, K>, String)> for Signatures<E, K>
impl<E: Ord, K: KeyName + ?Sized> Extend<(E, OwnedKeyId<SigningKeyAlgorithm, K>, String)> for Signatures<E, K>
Source§fn extend<T: IntoIterator<Item = (E, OwnedSigningKeyId<K>, String)>>(
&mut self,
iter: T,
)
fn extend<T: IntoIterator<Item = (E, OwnedSigningKeyId<K>, String)>>( &mut self, iter: T, )
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<E: Ord, K: KeyName + ?Sized, const N: usize> From<[(E, OwnedKeyId<SigningKeyAlgorithm, K>, String); N]> for Signatures<E, K>
impl<E: Ord, K: KeyName + ?Sized, const N: usize> From<[(E, OwnedKeyId<SigningKeyAlgorithm, K>, String); N]> for Signatures<E, K>
Source§impl<E: Ord, K: KeyName + ?Sized> FromIterator<(E, OwnedKeyId<SigningKeyAlgorithm, K>, String)> for Signatures<E, K>
impl<E: Ord, K: KeyName + ?Sized> FromIterator<(E, OwnedKeyId<SigningKeyAlgorithm, K>, String)> for Signatures<E, K>
Source§fn from_iter<T: IntoIterator<Item = (E, OwnedSigningKeyId<K>, String)>>(
iter: T,
) -> Self
fn from_iter<T: IntoIterator<Item = (E, OwnedSigningKeyId<K>, String)>>( iter: T, ) -> Self
Creates a value from an iterator. Read more