pub struct BearerResponse {
pub access_token: String,
pub token_type: String,
}Expand description
BearerResponse
JSON schema
{
"title": "BearerResponse",
"type": "object",
"required": [
"access_token",
"token_type"
],
"properties": {
"access_token": {
"title": "Access Token",
"type": "string"
},
"token_type": {
"title": "Token Type",
"type": "string"
}
}
}Fields§
§access_token: String§token_type: StringImplementations§
Source§impl BearerResponse
impl BearerResponse
pub fn builder() -> BearerResponse
Trait Implementations§
Source§impl Clone for BearerResponse
impl Clone for BearerResponse
Source§fn clone(&self) -> BearerResponse
fn clone(&self) -> BearerResponse
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 BearerResponse
impl Debug for BearerResponse
Source§impl<'de> Deserialize<'de> for BearerResponse
impl<'de> Deserialize<'de> for BearerResponse
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 From<&BearerResponse> for BearerResponse
impl From<&BearerResponse> for BearerResponse
Source§fn from(value: &BearerResponse) -> Self
fn from(value: &BearerResponse) -> Self
Converts to this type from the input type.
Source§impl From<BearerResponse> for BearerResponse
impl From<BearerResponse> for BearerResponse
Source§fn from(value: BearerResponse) -> Self
fn from(value: BearerResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for BearerResponse
impl Serialize for BearerResponse
Source§impl TryFrom<BearerResponse> for BearerResponse
impl TryFrom<BearerResponse> for BearerResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: BearerResponse) -> Result<Self, ConversionError>
fn try_from(value: BearerResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for BearerResponse
impl RefUnwindSafe for BearerResponse
impl Send for BearerResponse
impl Sync for BearerResponse
impl Unpin for BearerResponse
impl UnwindSafe for BearerResponse
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