[][src]Struct fxoanda_definitions::UserInfoExternal

pub struct UserInfoExternal {
    pub country: Option<String>,
    pub user_id: Option<i32>,
    pub fifo: Option<bool>,
}

Fields

country: Option<String>

The country that the user is based in.

user_id: Option<i32>

The user's OANDA-assigned user ID.

fifo: Option<bool>

Flag indicating if the the user's Accounts adhere to FIFO execution rules.

Methods

impl UserInfoExternal[src]

pub fn new() -> UserInfoExternal[src]

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

The country that the user is based in.

  • param String
  • return UserInfoExternal

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

The user's OANDA-assigned user ID.

  • param i32
  • return UserInfoExternal

pub fn with_fifo(self, x: bool) -> Self[src]

Flag indicating if the the user's Accounts adhere to FIFO execution rules.

  • param bool
  • return UserInfoExternal

Trait Implementations

impl Debug for UserInfoExternal[src]

impl Serialize for UserInfoExternal[src]

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

Auto Trait Implementations

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]