client-api: Update the query parameter of check_registration_token_validity
request
This commit is contained in:
parent
a80caa4c21
commit
2655624e35
@ -27,7 +27,7 @@ pub mod v1 {
|
|||||||
pub struct Request {
|
pub struct Request {
|
||||||
/// The registration token to check the validity of.
|
/// The registration token to check the validity of.
|
||||||
#[ruma_api(query)]
|
#[ruma_api(query)]
|
||||||
pub registration_token: String,
|
pub token: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Response type for the `check_registration_token_validity` endpoint.
|
/// Response type for the `check_registration_token_validity` endpoint.
|
||||||
@ -39,8 +39,8 @@ pub mod v1 {
|
|||||||
|
|
||||||
impl Request {
|
impl Request {
|
||||||
/// Creates a new `Request` with the given registration token.
|
/// Creates a new `Request` with the given registration token.
|
||||||
pub fn new(registration_token: String) -> Self {
|
pub fn new(token: String) -> Self {
|
||||||
Self { registration_token }
|
Self { token }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user