identifiers: Allow to clone MatrixToUri and MatrixUri

This commit is contained in:
Kévin Commaille 2024-04-21 13:40:18 +02:00 committed by Kévin Commaille
parent cc44459117
commit 21b644ac6a
2 changed files with 3 additions and 2 deletions

View File

@ -24,6 +24,7 @@ Improvements:
- Point links to the Matrix 1.10 specification
- Implement `as_str()` and `AsRef<str>` for `push::PredefinedRuleId`
- Implement `kind()` for `push::Predefined{*}RuleId`
- Implement `Clone` for `MatrixToUri` and `MatrixUri`
# 0.12.1

View File

@ -259,7 +259,7 @@ impl From<(&RoomAliasId, &EventId)> for MatrixId {
/// in a formatting macro or via `.to_string()`).
///
/// [`matrix.to` URI]: https://spec.matrix.org/latest/appendices/#matrixto-navigation
#[derive(Debug, PartialEq, Eq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct MatrixToUri {
id: MatrixId,
via: Vec<OwnedServerName>,
@ -443,7 +443,7 @@ impl From<Box<str>> for UriAction {
/// in a formatting macro or via `.to_string()`).
///
/// [`matrix:` URI]: https://spec.matrix.org/latest/appendices/#matrix-uri-scheme
#[derive(Debug, PartialEq, Eq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct MatrixUri {
id: MatrixId,
via: Vec<OwnedServerName>,