[][src]Struct fxoanda_definitions::UserInfo

pub struct UserInfo {
    pub username: Option<String>,
    pub country: Option<String>,
    pub email_address: Option<String>,
    pub user_id: Option<i32>,
}

Fields

username: Option<String>

The user-provided username.

country: Option<String>

The country that the user is based in.

email_address: Option<String>

The user's email address.

user_id: Option<i32>

The user's OANDA-assigned user ID.

Methods

impl UserInfo[src]

pub fn new() -> UserInfo[src]

pub fn with_username(self, x: String) -> Self[src]

The user-provided username.

  • param String
  • return UserInfo

pub fn with_country(self, x: String) -> Self[src]

The country that the user is based in.

  • param String
  • return UserInfo

pub fn with_email_address(self, x: String) -> Self[src]

The user's email address.

  • param String
  • return UserInfo

pub fn with_user_id(self, x: i32) -> Self[src]

The user's OANDA-assigned user ID.

  • param i32
  • return UserInfo

Trait Implementations

impl Debug for UserInfo[src]

impl Serialize for UserInfo[src]

impl<'de> Deserialize<'de> for UserInfo[src]

Auto Trait Implementations

impl Send for UserInfo

impl Sync for UserInfo

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]