pub struct UserInfo {
pub user_id: String,
pub name: String,
pub given_name: String,
pub family_name: String,
pub payer_id: String,
pub address: Address,
pub verified_account: String,
pub emails: Vec<Email>,
}
Fields
user_id: String
The Private Personal Identifier (PPID) that is unique for the end user and Relying Party.
name: String
The full name of the user. Includes all name parts, including titles and suffixes. The user’s locale and preferences determine the syntax.
given_name: String
The given, or first, name of the user.
family_name: String
The surname or family name of the user. Also known as the last name. Used also to store multiple surnames including the matronymic, or mother’s, surname.+
payer_id: String
The end user’s external PayPal account ID. Returned only if the access_token has the https://uri.paypal.com/services/paypalattributes scope.
address: Address
The end-user’s preferred address.
verified_account: String
The end user’s PayPal account status. Indicates whether the account is verified or not.
emails: Vec<Email>
An array of email addresses for the user.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for UserInfo
impl<'de> Deserialize<'de> for UserInfo
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for UserInfo
impl Send for UserInfo
impl Sync for UserInfo
impl Unpin for UserInfo
impl UnwindSafe for UserInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more