Struct fxoanda::OrderIdentifier
source · pub struct OrderIdentifier {
pub order_id: Option<String>,
pub client_order_id: Option<String>,
}
Fields§
§order_id: Option<String>
The OANDA-assigned Order ID format: The string representation of the OANDA-assigned OrderID. OANDA- assigned OrderIDs are positive integers, and are derived from the TransactionID of the Transaction that created the Order.
client_order_id: Option<String>
The client-provided client Order ID
Implementations§
source§impl OrderIdentifier
impl OrderIdentifier
pub fn new() -> OrderIdentifier
sourcepub fn with_order_id(self, x: String) -> OrderIdentifier
pub fn with_order_id(self, x: String) -> OrderIdentifier
The OANDA-assigned Order ID format: The string representation of the OANDA-assigned OrderID. OANDA- assigned OrderIDs are positive integers, and are derived from the TransactionID of the Transaction that created the Order.
- param String
- return OrderIdentifier
sourcepub fn with_client_order_id(self, x: String) -> OrderIdentifier
pub fn with_client_order_id(self, x: String) -> OrderIdentifier
The client-provided client Order ID
- param String
- return OrderIdentifier
Trait Implementations§
source§impl Debug for OrderIdentifier
impl Debug for OrderIdentifier
source§impl<'de> Deserialize<'de> for OrderIdentifier
impl<'de> Deserialize<'de> for OrderIdentifier
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<OrderIdentifier, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<OrderIdentifier, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for OrderIdentifier
impl Serialize for OrderIdentifier
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for OrderIdentifier
impl RefUnwindSafe for OrderIdentifier
impl Send for OrderIdentifier
impl Sync for OrderIdentifier
impl Unpin for OrderIdentifier
impl UnwindSafe for OrderIdentifier
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