pub struct JwtRefreshResponse {
pub refresh_token: Option<String>,
pub refresh_token_id: Option<Uuid>,
pub token: Option<String>,
}
Expand description
JwtRefreshResponse : API response for refreshing a JWT with a Refresh Token.
Using a different response object from RefreshTokenResponse because the retrieve response will return an object for refreshToken, and this is a string.
Fields§
§refresh_token: Option<String>
§refresh_token_id: Option<Uuid>
§token: Option<String>
Implementations§
Source§impl JwtRefreshResponse
impl JwtRefreshResponse
Sourcepub fn new() -> JwtRefreshResponse
pub fn new() -> JwtRefreshResponse
API response for refreshing a JWT with a Refresh Token.
Using a different response object from RefreshTokenResponse because the retrieve response will return an object for refreshToken, and this is a string.
Trait Implementations§
Source§impl Clone for JwtRefreshResponse
impl Clone for JwtRefreshResponse
Source§fn clone(&self) -> JwtRefreshResponse
fn clone(&self) -> JwtRefreshResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for JwtRefreshResponse
impl Debug for JwtRefreshResponse
Source§impl Default for JwtRefreshResponse
impl Default for JwtRefreshResponse
Source§fn default() -> JwtRefreshResponse
fn default() -> JwtRefreshResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JwtRefreshResponse
impl<'de> Deserialize<'de> for JwtRefreshResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for JwtRefreshResponse
impl PartialEq for JwtRefreshResponse
Source§impl Serialize for JwtRefreshResponse
impl Serialize for JwtRefreshResponse
impl StructuralPartialEq for JwtRefreshResponse
Auto Trait Implementations§
impl Freeze for JwtRefreshResponse
impl RefUnwindSafe for JwtRefreshResponse
impl Send for JwtRefreshResponse
impl Sync for JwtRefreshResponse
impl Unpin for JwtRefreshResponse
impl UnwindSafe for JwtRefreshResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more