identifiers: Borrow mxid in sign_invitation_ed25519 Request

This commit is contained in:
Jonas Platte 2021-11-25 21:06:47 +01:00
parent e9c1425acd
commit c38084432f
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
# [unreleased] # [unreleased]
Breaking changes:
* Borrow `mxid` in `invitation::sign_invitation_ed25519::v2::Request`
# 0.3.0 # 0.3.0
Breaking changes: Breaking changes:

View File

@ -15,7 +15,7 @@ ruma_api! {
request: { request: {
/// The Matrix user ID of the user accepting the invitation. /// The Matrix user ID of the user accepting the invitation.
pub mxid: UserId, pub mxid: &'a UserId,
/// The token from the call to store-invite. /// The token from the call to store-invite.
pub token: &'a str, pub token: &'a str,
@ -41,7 +41,7 @@ ruma_api! {
impl<'a> Request<'a> { impl<'a> Request<'a> {
/// Creates a `Request` with the given Matrix user ID, token and private_key. /// Creates a `Request` with the given Matrix user ID, token and private_key.
pub fn new(mxid: UserId, token: &'a str, private_key: &'a str) -> Self { pub fn new(mxid: &'a UserId, token: &'a str, private_key: &'a str) -> Self {
Self { mxid, token, private_key } Self { mxid, token, private_key }
} }
} }