pub struct AlertRequestConditions {
pub _type: Option<i32>,
pub conidex: Option<String>,
pub operator: Option<String>,
pub trigger_method: Option<String>,
pub value: Option<String>,
pub logic_bind: Option<String>,
pub time_zone: Option<String>,
}
Fields§
§_type: Option<i32>
Types: 1-Price, 3-Time, 4-Margin, 5-Trade, 6-Volume, 7: MTA market 8: MTA Position, 9: MTA Acc. Daily PN&
conidex: Option<String>
format, conid@exchange
operator: Option<String>
optional, operator for the current condition, can be >= or <=
trigger_method: Option<String>
optional, only some type of conditions have triggerMethod
value: Option<String>
can not be empty, can pass default value "*"
logic_bind: Option<String>
"a" means "AND", "o" means "OR", "n" means "END", the last one condition in the condition array should "n"
time_zone: Option<String>
only needed for some MTA alert condition
Implementations§
Source§impl AlertRequestConditions
impl AlertRequestConditions
pub fn new() -> AlertRequestConditions
Trait Implementations§
Source§impl Clone for AlertRequestConditions
impl Clone for AlertRequestConditions
Source§fn clone(&self) -> AlertRequestConditions
fn clone(&self) -> AlertRequestConditions
Returns a duplicate 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 moreSource§impl Debug for AlertRequestConditions
impl Debug for AlertRequestConditions
Source§impl<'de> Deserialize<'de> for AlertRequestConditions
impl<'de> Deserialize<'de> for AlertRequestConditions
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 AlertRequestConditions
impl PartialEq for AlertRequestConditions
Source§impl Serialize for AlertRequestConditions
impl Serialize for AlertRequestConditions
impl StructuralPartialEq for AlertRequestConditions
Auto Trait Implementations§
impl Freeze for AlertRequestConditions
impl RefUnwindSafe for AlertRequestConditions
impl Send for AlertRequestConditions
impl Sync for AlertRequestConditions
impl Unpin for AlertRequestConditions
impl UnwindSafe for AlertRequestConditions
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