Struct ruma_common::Signatures
source · pub struct Signatures<E: Ord, K: ?Sized>(/* private fields */);
Expand description
Map of all signatures, grouped by entity
let key_identifier = KeyId::from_parts(SigningKeyAlgorithm::Ed25519, "1");
let mut signatures = Signatures::new();
let server_name = server_name!("example.org");
let signature =
"YbJva03ihSj5mPk+CHMJKUKlCXCPFXjXOK6VqBnN9nA2evksQcTGn6hwQfrgRHIDDXO2le49x7jnWJHMJrJoBQ";
signatures.insert(server_name, key_identifier, signature.into());
Implementations§
Trait Implementations§
source§impl<E: Clone + Ord, K: Clone + ?Sized> Clone for Signatures<E, K>
impl<E: Clone + Ord, K: Clone + ?Sized> Clone for Signatures<E, K>
source§fn clone(&self) -> Signatures<E, K>
fn clone(&self) -> Signatures<E, K>
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<E: Default + Ord, K: Default + ?Sized> Default for Signatures<E, K>
impl<E: Default + Ord, K: Default + ?Sized> Default for Signatures<E, K>
source§fn default() -> Signatures<E, K>
fn default() -> Signatures<E, K>
Returns the “default value” for a type. Read more
source§impl<'de, E, K> Deserialize<'de> for Signatures<E, K>
impl<'de, E, K> Deserialize<'de> for Signatures<E, K>
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
Auto Trait Implementations§
impl<E, K> Freeze for Signatures<E, K>where
K: ?Sized,
impl<E, K> RefUnwindSafe for Signatures<E, K>
impl<E, K> Send for Signatures<E, K>
impl<E, K> Sync for Signatures<E, K>
impl<E, K> Unpin for Signatures<E, K>where
K: ?Sized,
impl<E, K> UnwindSafe for Signatures<E, K>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)