[−][src]Struct fxoanda::MarketOrderPositionCloseout
Fields
units: Option<String>
Indication of how much of the Position to close. Either "ALL", or a DecimalNumber reflection a partial close of the Trade. The DecimalNumber must always be positive, and represent a number that doesn't exceed the absolute size of the Position.
instrument: Option<String>
The instrument of the Position being closed out. format: A string containing the base currency and quote currency delimited by a "_".
Methods
impl MarketOrderPositionCloseout
[src]
pub fn new() -> MarketOrderPositionCloseout
[src]
pub fn with_units(self, x: String) -> MarketOrderPositionCloseout
[src]
Indication of how much of the Position to close. Either "ALL", or a DecimalNumber reflection a partial close of the Trade. The DecimalNumber must always be positive, and represent a number that doesn't exceed the absolute size of the Position.
- param String
- return MarketOrderPositionCloseout
pub fn with_instrument(self, x: String) -> MarketOrderPositionCloseout
[src]
The instrument of the Position being closed out. format: A string containing the base currency and quote currency delimited by a "_".
- param String
- return MarketOrderPositionCloseout
Trait Implementations
impl<'de> Deserialize<'de> for MarketOrderPositionCloseout
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<MarketOrderPositionCloseout, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<MarketOrderPositionCloseout, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Serialize for MarketOrderPositionCloseout
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Debug for MarketOrderPositionCloseout
[src]
Auto Trait Implementations
impl Send for MarketOrderPositionCloseout
impl Sync for MarketOrderPositionCloseout
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,