Struct fxoanda_definitions::UserInfoExternal
source · 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.
Implementations§
source§impl UserInfoExternal
impl UserInfoExternal
pub fn new() -> UserInfoExternal
sourcepub fn with_country(self, x: String) -> Self
pub fn with_country(self, x: String) -> Self
The country that the user is based in.
- param String
- return UserInfoExternal
sourcepub fn with_user_id(self, x: i32) -> Self
pub fn with_user_id(self, x: i32) -> Self
The user’s OANDA-assigned user ID.
- param i32
- return UserInfoExternal
Trait Implementations§
source§impl Debug for UserInfoExternal
impl Debug for UserInfoExternal
source§impl<'de> Deserialize<'de> for UserInfoExternal
impl<'de> Deserialize<'de> for UserInfoExternal
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
Auto Trait Implementations§
impl Freeze for UserInfoExternal
impl RefUnwindSafe for UserInfoExternal
impl Send for UserInfoExternal
impl Sync for UserInfoExternal
impl Unpin for UserInfoExternal
impl UnwindSafe for UserInfoExternal
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