pub struct StopLoss {
pub stop_price: String,
pub limit_price: Option<String>,
}Expand description
Stop loss configuration for bracket orders.
Fields§
§stop_price: StringThe stop price that triggers the stop loss.
limit_price: Option<String>Optional limit price for a stop-limit order.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StopLoss
impl<'de> Deserialize<'de> for StopLoss
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StopLoss, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StopLoss, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for StopLoss
impl Serialize for StopLoss
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
impl StructuralPartialEq for StopLoss
Auto Trait Implementations§
impl Freeze for StopLoss
impl RefUnwindSafe for StopLoss
impl Send for StopLoss
impl Sync for StopLoss
impl Unpin for StopLoss
impl UnwindSafe for StopLoss
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