#[non_exhaustive]pub struct TrailingStopLossDetails {
pub distance: Option<DecimalNumber>,
pub time_in_force: Option<TimeInForce>,
pub gtd_time: Option<DateTime>,
pub client_extensions: Option<ClientExtensions>,
}Expand description
TrailingStopLossDetails specifies the details of a Trailing Stop Loss Order to be created on behalf of a client. This may happen when an Order is filled that opens a Trade requiring a Trailing Stop Loss, or when a Trade’s dependent Trailing Stop Loss Order is modified directly through the Trade.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.distance: Option<DecimalNumber>The distance (in price units) from the Trade’s fill price that the Trailing Stop Loss Order will be triggered at.
time_in_force: Option<TimeInForce>The timeInForce field.
gtd_time: Option<DateTime>The date when the Trailing Stop Loss Order will be cancelled on if timeInForce is GTD.
client_extensions: Option<ClientExtensions>The clientExtensions field.
Implementations§
Source§impl TrailingStopLossDetails
impl TrailingStopLossDetails
Sourcepub fn at_distance(distance: DecimalNumber) -> Self
pub fn at_distance(distance: DecimalNumber) -> Self
Trailing stop-loss details trailing at distance price units.
Trait Implementations§
Source§impl Clone for TrailingStopLossDetails
impl Clone for TrailingStopLossDetails
Source§fn clone(&self) -> TrailingStopLossDetails
fn clone(&self) -> TrailingStopLossDetails
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrailingStopLossDetails
impl Debug for TrailingStopLossDetails
Source§impl<'de> Deserialize<'de> for TrailingStopLossDetails
impl<'de> Deserialize<'de> for TrailingStopLossDetails
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
Source§impl PartialEq for TrailingStopLossDetails
impl PartialEq for TrailingStopLossDetails
Source§impl Serialize for TrailingStopLossDetails
impl Serialize for TrailingStopLossDetails
impl StructuralPartialEq for TrailingStopLossDetails
Auto Trait Implementations§
impl Freeze for TrailingStopLossDetails
impl RefUnwindSafe for TrailingStopLossDetails
impl Send for TrailingStopLossDetails
impl Sync for TrailingStopLossDetails
impl Unpin for TrailingStopLossDetails
impl UnsafeUnpin for TrailingStopLossDetails
impl UnwindSafe for TrailingStopLossDetails
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