mirror of
https://github.com/girlbossceo/ruwuma.git
synced 2025-04-29 06:49:48 -04:00
derive PartialEq for CrossSigningKey and identifiers::Signatures
Signed-off-by: morguldir <morguldir@protonmail.com>
This commit is contained in:
parent
d2e1b510a0
commit
82b666ae33
2 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ pub enum OneTimeKey {
|
|||
/// A [cross-signing] key.
|
||||
///
|
||||
/// [cross-signing]: https://spec.matrix.org/latest/client-server-api/#cross-signing
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
#[derive(Clone, Debug, Deserialize, Serialize, PartialEq)]
|
||||
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
||||
pub struct CrossSigningKey {
|
||||
/// The ID of the user the key belongs to.
|
||||
|
|
|
@ -27,7 +27,7 @@ pub type EntitySignatures<K> = BTreeMap<OwnedSigningKeyId<K>, String>;
|
|||
/// "YbJva03ihSj5mPk+CHMJKUKlCXCPFXjXOK6VqBnN9nA2evksQcTGn6hwQfrgRHIDDXO2le49x7jnWJHMJrJoBQ";
|
||||
/// signatures.insert_signature(server_name, key_identifier, signature.into());
|
||||
/// ```
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
#[derive(Debug, Serialize, Deserialize, PartialEq)]
|
||||
#[serde(
|
||||
transparent,
|
||||
bound(serialize = "E: Serialize", deserialize = "E: serde::de::DeserializeOwned")
|
||||
|
|
Loading…
Add table
Reference in a new issue