identifiers: Borrow mxid in sign_invitation_ed25519 Request
This commit is contained in:
		
							parent
							
								
									e9c1425acd
								
							
						
					
					
						commit
						c38084432f
					
				| @ -1,5 +1,9 @@ | ||||
| # [unreleased] | ||||
| 
 | ||||
| Breaking changes: | ||||
| 
 | ||||
| * Borrow `mxid` in `invitation::sign_invitation_ed25519::v2::Request` | ||||
| 
 | ||||
| # 0.3.0 | ||||
| 
 | ||||
| Breaking changes: | ||||
|  | ||||
| @ -15,7 +15,7 @@ ruma_api! { | ||||
| 
 | ||||
|     request: { | ||||
|         /// 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.
 | ||||
|         pub token: &'a str, | ||||
| @ -41,7 +41,7 @@ ruma_api! { | ||||
| 
 | ||||
| impl<'a> Request<'a> { | ||||
|     /// 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 } | ||||
|     } | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user