Struct SetSettingsRequest

Source
pub struct SetSettingsRequest {
Show 34 fields pub account_opening_reason: Option<Value>, pub address_city: Option<String>, pub address_line_1: Option<String>, pub address_line_2: Option<Value>, pub address_postcode: Option<String>, pub address_state: Option<String>, pub allow_copiers: Option<String>, pub calling_country_code: Option<Value>, pub citizen: Option<Value>, pub date_of_birth: Option<String>, pub dxtrade_user_exception: Option<String>, pub email_consent: Option<String>, pub employment_status: Option<String>, pub feature_flag: Option<FeatureFlag>, pub financial_information_version: Option<String>, pub first_name: Option<String>, pub last_name: Option<String>, pub loginid: Option<String>, pub non_pep_declaration: Option<i64>, pub passthrough: Option<Value>, pub phone: Option<Value>, pub place_of_birth: Option<String>, pub preferred_language: Option<Value>, pub req_id: Option<i64>, pub request_professional_status: Option<i64>, pub residence: Option<Value>, pub salutation: Option<String>, pub secret_answer: Option<String>, pub secret_question: Option<String>, pub set_settings: i64, pub tax_identification_number: Option<String>, pub tax_residence: Option<String>, pub tin_skipped: Option<TinSkipped>, pub trading_hub: Option<TradingHub>,
}
Expand description

Set User Settings (this call should be used in conjunction with get_settings)

Fields§

§account_opening_reason: Option<Value>

Field ‘account_opening_reason’ mapped to Value due to complexity/potential issues.\n

§address_city: Option<String>

[Optional] Note: not applicable for virtual account. Required field for real money account.\n

§address_line_1: Option<String>

[Optional] Note: not applicable for virtual account. Required field for real money account.\n

§address_line_2: Option<Value>

Field ‘address_line_2’ mapped to Value due to complexity/potential issues.\n

§address_postcode: Option<String>

[Optional] Note: not applicable for virtual account. Optional field for real money account.\n

§address_state: Option<String>

[Optional] Note: not applicable for virtual account. Optional field for real money account.\n

§allow_copiers: Option<String>

[Optional] Boolean value 1 or 0, indicating permission to allow others to follow your trades. Note: not applicable for Virtual account. Only allow for real money account.\n

§calling_country_code: Option<Value>

[Optional] The phone’s calling country code. Don’t include the + sign. Up to 4 digits.\n

§citizen: Option<Value>

[Optional] Country of legal citizenship, 2-letter country code.\n

§date_of_birth: Option<String>

[Optional] Date of birth format: yyyy-mm-dd (can only be changed on unauthenticated svg accounts).\n

§dxtrade_user_exception: Option<String>

Boolean value 1 or 0, indicating if user email belong to dxtrade exception list.\n

§email_consent: Option<String>

[Optional] Boolean value 1 or 0, indicating permission to use email address for any contact which may include marketing\n

§employment_status: Option<String>

[Optional] Employment Status.\n

§feature_flag: Option<FeatureFlag>

[Optional] Enable or disable one or multiple features.\n

§financial_information_version: Option<String>

[Optional] The version of the financial information\n

§first_name: Option<String>

[Optional] Within 1-50 characters, use only letters, spaces, hyphens, full-stops or apostrophes (can only be changed on unauthenticated svg accounts).\n

§last_name: Option<String>

[Optional] Within 1-50 characters, use only letters, spaces, hyphens, full-stops or apostrophes (can only be changed on unauthenticated svg accounts).\n

§loginid: Option<String>

[Optional] The login id of the user. Mandatory when multiple tokens were provided during authorize.\n

§non_pep_declaration: Option<i64>

[Optional] Indicates client’s self-declaration of not being a PEP/RCA (Politically Exposed Person/Relatives and Close Associates). Effective for real accounts only.\n

§passthrough: Option<Value>

[Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.\n

§phone: Option<Value>

[Optional] The phone’s national format, don’t include the + sign nor the calling country code. Up to 15 digits are allowed.\n

§place_of_birth: Option<String>

[Optional] Place of birth, 2-letter country code.\n

§preferred_language: Option<Value>

[Optional] User’s preferred language, ISO standard language code\n

§req_id: Option<i64>

[Optional] Used to map request to response.\n

§request_professional_status: Option<i64>

[Optional] Required when client wants to be treated as professional. Applicable for financial accounts only.\n

§residence: Option<Value>

[Optional] 2-letter country code. Note: not applicable for real money account. Only allow for Virtual account without residence set.\n

§salutation: Option<String>

[Optional] Accept any value in enum list (can only be changed on unauthenticated svg accounts).\n

§secret_answer: Option<String>

[Optional] Answer to secret question, within 4-50 characters. Required for new account and existing client details will be used if client opens another account.\n

§secret_question: Option<String>

[Optional] Accept any value in enum list. Required for new account and existing client details will be used if client opens another account.\n

§set_settings: i64

Must be 1\n

§tax_identification_number: Option<String>

[Optional] Tax identification number. Only applicable for real money account. Required for maltainvest landing company.\n

§tax_residence: Option<String>

[Optional] Residence for tax purpose. Comma separated iso country code if multiple jurisdictions. Only applicable for real money account. Required for maltainvest landing company.\n

§tin_skipped: Option<TinSkipped>

[Optional] Whether the client has skipped the TIN form. Only applicable for real money account.\n

§trading_hub: Option<TradingHub>

[Optional] Enable/Disable Trading Hub dashboard\n

Trait Implementations§

Source§

impl Clone for SetSettingsRequest

Source§

fn clone(&self) -> SetSettingsRequest

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SetSettingsRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SetSettingsRequest

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for SetSettingsRequest

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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