identifiers: Borrow mxid in sign_invitation_ed25519 Request
This commit is contained in:
		
							parent
							
								
									e9c1425acd
								
							
						
					
					
						commit
						c38084432f
					
				| @ -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: | ||||||
|  | |||||||
| @ -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 } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user