mirror of
https://github.com/girlbossceo/ruwuma.git
synced 2025-04-29 06:49:48 -04:00
api: Implement PartialEq, Eq, PartialOrd and Ord for media::Method
This commit is contained in:
parent
0e84b0ab99
commit
72871a8e50
2 changed files with 5 additions and 2 deletions
|
@ -34,7 +34,8 @@ Improvements:
|
|||
- `ProtocolInstance` has an `instance_id` field, due to a clarification in the
|
||||
spec.
|
||||
- The `unstable-unspecified` cargo feature was removed.
|
||||
- `Signatures` implements `IntoIterator`
|
||||
- `Signatures` implements `IntoIterator`.
|
||||
- Implement `PartialEqAsRefStr`, `Eq`, `PartialOrdAsRefStr`, `OrdAsRefStr` for `ruma_common::media::Method`.
|
||||
|
||||
# 0.15.1
|
||||
|
||||
|
|
|
@ -4,11 +4,13 @@
|
|||
|
||||
use std::time::Duration;
|
||||
|
||||
use ruma_macros::{OrdAsRefStr, PartialEqAsRefStr, PartialOrdAsRefStr};
|
||||
|
||||
use crate::{serde::StringEnum, PrivOwnedStr};
|
||||
|
||||
/// The desired resizing method for a thumbnail.
|
||||
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/doc/string_enum.md"))]
|
||||
#[derive(Clone, Eq, PartialEq, StringEnum)]
|
||||
#[derive(Clone, StringEnum, PartialEq, PartialEqAsRefStr, Eq, PartialOrdAsRefStr, OrdAsRefStr)]
|
||||
#[ruma_enum(rename_all = "snake_case")]
|
||||
#[non_exhaustive]
|
||||
pub enum Method {
|
||||
|
|
Loading…
Add table
Reference in a new issue