pub struct OAuthLinkResponseBody {
pub created_at: f64,
pub custom_metadata: Option<CustomMetadata>,
pub has_accepted_terms: bool,
pub id: String,
pub is_guest: bool,
pub linked_accounts: Vec<LinkedAccount>,
pub mfa_methods: Vec<LinkedMfaMethod>,
pub oauth_tokens: Option<OAuthTokens>,
}Expand description
The response for linking an OAuth account.
JSON schema
{
"title": "OAuthLinkResponseBody",
"description": "The response for linking an OAuth account.",
"allOf": [
{
"$ref": "#/components/schemas/User"
},
{
"type": "object",
"properties": {
"oauth_tokens": {
"$ref": "#/components/schemas/OAuthTokens"
}
}
}
],
"x-stainless-model": "client_auth.oauth_link_response_body"
}Fields§
§created_at: f64§custom_metadata: Option<CustomMetadata>§has_accepted_terms: boolIndicates if the user has accepted the terms of service.
id: String§is_guest: boolIndicates if the user is a guest account user.
linked_accounts: Vec<LinkedAccount>§mfa_methods: Vec<LinkedMfaMethod>§oauth_tokens: Option<OAuthTokens>Trait Implementations§
Source§impl Clone for OAuthLinkResponseBody
impl Clone for OAuthLinkResponseBody
Source§fn clone(&self) -> OAuthLinkResponseBody
fn clone(&self) -> OAuthLinkResponseBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OAuthLinkResponseBody
impl Debug for OAuthLinkResponseBody
Source§impl<'de> Deserialize<'de> for OAuthLinkResponseBody
impl<'de> Deserialize<'de> for OAuthLinkResponseBody
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<&OAuthLinkResponseBody> for OAuthLinkResponseBody
impl From<&OAuthLinkResponseBody> for OAuthLinkResponseBody
Source§fn from(value: &OAuthLinkResponseBody) -> Self
fn from(value: &OAuthLinkResponseBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OAuthLinkResponseBody
impl RefUnwindSafe for OAuthLinkResponseBody
impl Send for OAuthLinkResponseBody
impl Sync for OAuthLinkResponseBody
impl Unpin for OAuthLinkResponseBody
impl UnsafeUnpin for OAuthLinkResponseBody
impl UnwindSafe for OAuthLinkResponseBody
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