pub struct SetOrderClientExtensionsRequest { /* private fields */ }
Expand description
Set Order Extensions Update the Client Extensions for an Order in an Account. Do not set, modify, or delete clientExtensions if your account is associated with MT4.
Implementations§
source§impl SetOrderClientExtensionsRequest
impl SetOrderClientExtensionsRequest
pub fn new() -> SetOrderClientExtensionsRequest
pub fn with_uri(self, x: String) -> Self
sourcepub fn with_account_id(self, x: String) -> Self
pub fn with_account_id(self, x: String) -> Self
Account Identifier format: “-”-delimited string with format “{siteID}-{divisionID}-{userID}-{accountNumber}”
- param String
- return SetOrderClientExtensionsRequest
sourcepub fn with_order_specifier(self, x: String) -> Self
pub fn with_order_specifier(self, x: String) -> Self
The Order Specifier format: Either the Order’s OANDA-assigned OrderID or the Order’s client- provided ClientID prefixed by the “@” symbol
- param String
- return SetOrderClientExtensionsRequest
The authorization bearer token previously obtained by the client format: The string ’Bearer ’ followed by the token.
- param String
- return SetOrderClientExtensionsRequest
sourcepub fn with_accept_datetime_format(self, x: String) -> Self
pub fn with_accept_datetime_format(self, x: String) -> Self
Format of DateTime fields in the request and response.
- param String
- return SetOrderClientExtensionsRequest
sourcepub fn with_client_extensions(self, x: ClientExtensions) -> Self
pub fn with_client_extensions(self, x: ClientExtensions) -> Self
A ClientExtensions object allows a client to attach a clientID, tag and comment to Orders and Trades in their Account. Do not set, modify, or delete this field if your account is associated with MT4.
- param ClientExtensions
- return SetOrderClientExtensionsRequest
sourcepub fn with_trade_client_extensions(self, x: ClientExtensions) -> Self
pub fn with_trade_client_extensions(self, x: ClientExtensions) -> Self
A ClientExtensions object allows a client to attach a clientID, tag and comment to Orders and Trades in their Account. Do not set, modify, or delete this field if your account is associated with MT4.
- param ClientExtensions
- return SetOrderClientExtensionsRequest