pub enum TriggerType {
StopLoss,
TakeProfit,
}
Expand description
What type of price trigger occurred?
Variants§
Trait Implementations§
§impl Clone for TriggerType
impl Clone for TriggerType
§fn clone(&self) -> TriggerType
fn clone(&self) -> TriggerType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for TriggerType
impl Debug for TriggerType
§impl<'de> Deserialize<'de> for TriggerType
impl<'de> Deserialize<'de> for TriggerType
§fn deserialize<__D>(
__deserializer: __D
) -> Result<TriggerType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TriggerType, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for TriggerType
impl Display for TriggerType
§impl PartialEq for TriggerType
impl PartialEq for TriggerType
§fn eq(&self, other: &TriggerType) -> bool
fn eq(&self, other: &TriggerType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for TriggerType
impl Serialize for TriggerType
§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 Copy for TriggerType
impl Eq for TriggerType
impl StructuralEq for TriggerType
impl StructuralPartialEq for TriggerType
Auto Trait Implementations§
impl RefUnwindSafe for TriggerType
impl Send for TriggerType
impl Sync for TriggerType
impl Unpin for TriggerType
impl UnwindSafe for TriggerType
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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
§impl<T> QueryResultExt for Twhere
T: Serialize,
impl<T> QueryResultExt for Twhere T: Serialize,
§fn query_result(&self) -> Result<Binary, Error>
fn query_result(&self) -> Result<Binary, Error>
Convert the value to its JSON representation