api: implement (Partial)Eq for Metadata
This commit is contained in:
parent
5ebe200bb6
commit
50a46cc5f6
@ -25,6 +25,7 @@ Improvements:
|
||||
parameter is deprecated, according to MSC4126 / Matrix 1.11.
|
||||
- Constructing a Matrix URI for an event with a room alias is deprecated,
|
||||
according to MSC4132 / Matrix 1.11
|
||||
- Implement `Eq` and `PartialEq` for `Metadata`
|
||||
|
||||
# 0.13.0
|
||||
|
||||
|
@ -19,7 +19,7 @@ use super::{
|
||||
use crate::{percent_encode::PATH_PERCENT_ENCODE_SET, serde::slice_to_buf, RoomVersionId};
|
||||
|
||||
/// Metadata about an API endpoint.
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
#[allow(clippy::exhaustive_structs)]
|
||||
pub struct Metadata {
|
||||
/// The HTTP method used by this endpoint.
|
||||
@ -141,7 +141,7 @@ impl Metadata {
|
||||
/// versions stable and unstable.
|
||||
///
|
||||
/// The amount and positioning of path variables are the same over all path variants.
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
#[allow(clippy::exhaustive_structs)]
|
||||
pub struct VersionHistory {
|
||||
/// A list of unstable paths over this endpoint's history.
|
||||
|
Loading…
x
Reference in New Issue
Block a user