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<OAuthLinkResponseBodyMfaMethodsItem>,
pub oauth_tokens: Option<OAuthLinkResponseBodyOauthTokens>,
}Expand description
The response for linking an OAuth account.
JSON schema
{
"title": "OAuthLinkResponseBody",
"description": "The response for linking an OAuth account.",
"examples": [
{
"created_at": 1731974895,
"has_accepted_terms": true,
"id": "did:privy:cm3np4u9j001rc8b73seqmqqk",
"is_guest": false,
"linked_accounts": [
{
"address": "tom.bombadill@privy.io",
"first_verified_at": 1674788927,
"latest_verified_at": 1674788927,
"type": "email",
"verified_at": 1674788927
},
{
"bio": "engineering at /privy. building pixelpool.xyz, the
first Farcaster video client. nyc. ๐จโ๐ป๐๐ณ๏ธโ๐ nf.td/payton",
"display_name": "payton โ",
"fid": 4423,
"first_verified_at": 1740678402,
"latest_verified_at": 1741194370,
"owner_address": "0xE6bFb4137F3A8C069F98cc775f324A84FE45FdFF",
"profile_picture": "https://supercast.mypinata.cloud/ipfs/QmNexfCxdnFzWdJqKVgrjd27UGLMexNaw5FXu1XKR3cQF7?filename=IMG_2799.png",
"profile_picture_url": "https://supercast.mypinata.cloud/ipfs/QmNexfCxdnFzWdJqKVgrjd27UGLMexNaw5FXu1XKR3cQF7?filename=IMG_2799.png",
"type": "farcaster",
"username": "payton",
"verified_at": 1740678402
},
{
"authenticator_name": "1Password",
"created_with_browser": "Chrome",
"created_with_device": "Macintosh",
"created_with_os": "Mac OS",
"credential_id":
"Il5vP-3Tm3hNmDVBmDlREgXzIOJnZEaiVnT-XMliXe-BufP9GL1-d3qhozk9IkZwQ_",
"enrolled_in_mfa": true,
"first_verified_at": 1741194420,
"latest_verified_at": 1741194420,
"public_key":
"pQECAyYgASFYIKdGwx5XxZ/7CJJzT8d5L6jyLNQdTH7X+rSZdPJ9Ux/
QIlggRm4OcJ8F3aB5zYz3T9LxLdDfGpWvYkHgS4A8tPz9CqE=",
"type": "passkey",
"verified_at": 1741194420
}
],
"mfa_methods": [
{
"type": "passkey",
"verified_at": 1741194420
}
]
}
],
"allOf": [
{
"$ref": "#/components/schemas/User"
},
{
"type": "object",
"properties": {
"oauth_tokens": {
"type": "object",
"required": [
"access_token",
"provider"
],
"properties": {
"access_token": {
"type": "string"
},
"access_token_expires_in_seconds": {
"type": "number"
},
"provider": {
"type": "string"
},
"refresh_token": {
"type": "string"
},
"refresh_token_expires_in_seconds": {
"type": "number"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
]
}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<OAuthLinkResponseBodyMfaMethodsItem>ยงoauth_tokens: Option<OAuthLinkResponseBodyOauthTokens>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 ยท 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<OAuthLinkResponseBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OAuthLinkResponseBody, <__D as Deserializer<'de>>::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) -> OAuthLinkResponseBody
fn from(value: &OAuthLinkResponseBody) -> OAuthLinkResponseBody
Converts to this type from the input type.
Sourceยงimpl Serialize for OAuthLinkResponseBody
impl Serialize for OAuthLinkResponseBody
Sourceยงfn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementationsยง
impl Freeze for OAuthLinkResponseBody
impl RefUnwindSafe for OAuthLinkResponseBody
impl Send for OAuthLinkResponseBody
impl Sync for OAuthLinkResponseBody
impl Unpin 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