Struct fxoanda_definitions::UserInfo
source · 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.
Implementations§
source§impl UserInfo
impl UserInfo
pub fn new() -> UserInfo
sourcepub fn with_username(self, x: String) -> Self
pub fn with_username(self, x: String) -> Self
The user-provided username.
- param String
- return UserInfo
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 UserInfo
sourcepub fn with_email_address(self, x: String) -> Self
pub fn with_email_address(self, x: String) -> Self
The user’s email address.
- param String
- return UserInfo
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 UserInfo
Trait Implementations§
source§impl<'de> Deserialize<'de> for UserInfo
impl<'de> Deserialize<'de> for UserInfo
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 UserInfo
impl RefUnwindSafe for UserInfo
impl Send for UserInfo
impl Sync for UserInfo
impl Unpin for UserInfo
impl UnwindSafe for UserInfo
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