identifiers: Allow to clone MatrixToUri and MatrixUri
This commit is contained in:
parent
cc44459117
commit
21b644ac6a
@ -24,6 +24,7 @@ Improvements:
|
|||||||
- Point links to the Matrix 1.10 specification
|
- Point links to the Matrix 1.10 specification
|
||||||
- Implement `as_str()` and `AsRef<str>` for `push::PredefinedRuleId`
|
- Implement `as_str()` and `AsRef<str>` for `push::PredefinedRuleId`
|
||||||
- Implement `kind()` for `push::Predefined{*}RuleId`
|
- Implement `kind()` for `push::Predefined{*}RuleId`
|
||||||
|
- Implement `Clone` for `MatrixToUri` and `MatrixUri`
|
||||||
|
|
||||||
# 0.12.1
|
# 0.12.1
|
||||||
|
|
||||||
|
@ -259,7 +259,7 @@ impl From<(&RoomAliasId, &EventId)> for MatrixId {
|
|||||||
/// in a formatting macro or via `.to_string()`).
|
/// in a formatting macro or via `.to_string()`).
|
||||||
///
|
///
|
||||||
/// [`matrix.to` URI]: https://spec.matrix.org/latest/appendices/#matrixto-navigation
|
/// [`matrix.to` URI]: https://spec.matrix.org/latest/appendices/#matrixto-navigation
|
||||||
#[derive(Debug, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub struct MatrixToUri {
|
pub struct MatrixToUri {
|
||||||
id: MatrixId,
|
id: MatrixId,
|
||||||
via: Vec<OwnedServerName>,
|
via: Vec<OwnedServerName>,
|
||||||
@ -443,7 +443,7 @@ impl From<Box<str>> for UriAction {
|
|||||||
/// in a formatting macro or via `.to_string()`).
|
/// in a formatting macro or via `.to_string()`).
|
||||||
///
|
///
|
||||||
/// [`matrix:` URI]: https://spec.matrix.org/latest/appendices/#matrix-uri-scheme
|
/// [`matrix:` URI]: https://spec.matrix.org/latest/appendices/#matrix-uri-scheme
|
||||||
#[derive(Debug, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub struct MatrixUri {
|
pub struct MatrixUri {
|
||||||
id: MatrixId,
|
id: MatrixId,
|
||||||
via: Vec<OwnedServerName>,
|
via: Vec<OwnedServerName>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user