client-api: Use borrowed types in refresh_token::v3::Request
This commit is contained in:
parent
8e2c4b5cb7
commit
90f9463c1a
@ -43,7 +43,7 @@ pub mod v3 {
|
|||||||
|
|
||||||
request: {
|
request: {
|
||||||
/// The refresh token.
|
/// The refresh token.
|
||||||
pub refresh_token: String,
|
pub refresh_token: &'a str,
|
||||||
}
|
}
|
||||||
|
|
||||||
response: {
|
response: {
|
||||||
@ -70,9 +70,9 @@ pub mod v3 {
|
|||||||
error: crate::Error
|
error: crate::Error
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Request {
|
impl<'a> Request<'a> {
|
||||||
/// Creates a new `Request` with the given refresh token.
|
/// Creates a new `Request` with the given refresh token.
|
||||||
pub fn new(refresh_token: String) -> Self {
|
pub fn new(refresh_token: &'a str) -> Self {
|
||||||
Self { refresh_token }
|
Self { refresh_token }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user