pub struct AlertCreationRequestCondition {
pub conidex: String,
pub logic_bind: Option<AlertCreationRequestConditionLogicBind>,
pub operator: String,
pub time_zone: Option<String>,
pub trigger_method: String,
pub type: AlertCreationRequestConditionType,
pub value: Option<String>,
}Fields§
§conidex: StringConcatenation of conid and exchange. Formatted as “conid@exchange”
- Example:
"265598@SMART".to_string()
logic_bind: Option<AlertCreationRequestConditionLogicBind>Describes how multiple conditions should behave together. Available logic types:
a- ANDo- ORn- END
operator: StringIndicates whether the trigger should be above or below the given value. (one of: >=, <=, >, <, ==)
time_zone: Option<String>Only needed for some MTA alert condition.
trigger_method: StringPass the string representation of zero, “0”
type: AlertCreationRequestConditionTypeDesignate what condition type to use. Note the “MTA” types listed are only supported if iTWSOrdersOnly=1 Available condition types:
1- Price3- Time4- Margin5- Trade6- Volume7- MTA Market8- MTA Postion9- MTA Account Daily PnL
value: Option<String>Trigger value based on Type.
Trait Implementations§
Source§impl Clone for AlertCreationRequestCondition
impl Clone for AlertCreationRequestCondition
Source§fn clone(&self) -> AlertCreationRequestCondition
fn clone(&self) -> AlertCreationRequestCondition
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 PartialEq for AlertCreationRequestCondition
impl PartialEq for AlertCreationRequestCondition
Source§fn eq(&self, other: &AlertCreationRequestCondition) -> bool
fn eq(&self, other: &AlertCreationRequestCondition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Validate for AlertCreationRequestCondition
impl Validate for AlertCreationRequestCondition
Source§impl<'v_a> ValidateArgs<'v_a> for AlertCreationRequestCondition
impl<'v_a> ValidateArgs<'v_a> for AlertCreationRequestCondition
impl StructuralPartialEq for AlertCreationRequestCondition
Auto Trait Implementations§
impl Freeze for AlertCreationRequestCondition
impl RefUnwindSafe for AlertCreationRequestCondition
impl Send for AlertCreationRequestCondition
impl Sync for AlertCreationRequestCondition
impl Unpin for AlertCreationRequestCondition
impl UnsafeUnpin for AlertCreationRequestCondition
impl UnwindSafe for AlertCreationRequestCondition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more
§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
§fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
Add request id header and extension. Read more
§fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
Add request id header and extension, using
x-request-id as the header name. Read more§fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
Propgate request ids from requests to responses. Read more
§fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
Propgate request ids from requests to responses, using
x-request-id as the header name. Read more§fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
Intercept requests with over-sized payloads and convert them into
413 Payload Too Large responses. Read more