pub struct AlertCreationRequest {
pub alert_message: String,
pub alert_name: String,
pub alert_repeatable: AlertActivationRequestAlertActive,
pub conditions: Vec<AlertCreationRequestCondition>,
pub email: Option<String>,
pub expire_time: Option<String>,
pub i_twsorders_only: Option<i32>,
pub order_id: Option<i64>,
pub outside_rth: AlertActivationRequestAlertActive,
pub send_message: Option<AlertActivationRequestAlertActive>,
pub show_popup: Option<i32>,
pub tif: AlertCreationRequestTif,
}Fields§
§alert_message: StringAlert message which will be sent
alert_name: StringAlert name.
alert_repeatable: AlertActivationRequestAlertActiveBoolean number (0, 1) signifies if an alert can be triggered more than once. A value of ‘1’ is required for MTA alerts
conditions: Vec<AlertCreationRequestCondition>Container for all conditions applied for an alert to trigger.
email: Option<String>Email address you want to send email alerts to
expire_time: Option<String>Used with a tif of “GTD” only. Signifies time when the alert should terminate if no alert is triggered.
i_twsorders_only: Option<i32>allow (0) or disallow (1) alerts to trigger alerts through the mobile app
order_id: Option<i64>optional; used in case of modification and represent Alert Id
outside_rth: AlertActivationRequestAlertActiveAllow (1) or disallow (0) the alert to be triggered outside of regular trading hours
send_message: Option<AlertActivationRequestAlertActive>allow (1) or disallow (0) alerts to trigger email messages
show_popup: Option<i32>allow (1) or disallow (0) alerts to trigger TWS Pop-up messages
tif: AlertCreationRequestTifTime in Force duration of alert.
Trait Implementations§
Source§impl Clone for AlertCreationRequest
impl Clone for AlertCreationRequest
Source§fn clone(&self) -> AlertCreationRequest
fn clone(&self) -> AlertCreationRequest
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 AlertCreationRequest
impl Debug for AlertCreationRequest
Source§impl Default for AlertCreationRequest
impl Default for AlertCreationRequest
Source§impl PartialEq for AlertCreationRequest
impl PartialEq for AlertCreationRequest
Source§impl Serialize for AlertCreationRequest
impl Serialize for AlertCreationRequest
Source§impl Validate for AlertCreationRequest
impl Validate for AlertCreationRequest
Source§impl<'v_a> ValidateArgs<'v_a> for AlertCreationRequest
impl<'v_a> ValidateArgs<'v_a> for AlertCreationRequest
impl StructuralPartialEq for AlertCreationRequest
Auto Trait Implementations§
impl Freeze for AlertCreationRequest
impl RefUnwindSafe for AlertCreationRequest
impl Send for AlertCreationRequest
impl Sync for AlertCreationRequest
impl Unpin for AlertCreationRequest
impl UnsafeUnpin for AlertCreationRequest
impl UnwindSafe for AlertCreationRequest
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