pub struct AlertTrigger {
pub id: AlertId,
pub symbol: String,
pub time: DateTime<Utc>,
pub price: Option<f64>,
pub message: String,
}Expand description
One trigger the host reported, retained even after the alert is removed.
Fields§
§id: AlertIdHost alert identifier.
symbol: StringSymbol as known when the trigger arrived, empty if its alert was not yet supplied.
time: DateTime<Utc>Host trigger time, including triggers missed while the application was closed.
price: Option<f64>Finite trigger price, if supplied.
message: StringThe alert’s message with its placeholders filled in, empty if there is none.
Trait Implementations§
Source§impl Clone for AlertTrigger
impl Clone for AlertTrigger
Source§fn clone(&self) -> AlertTrigger
fn clone(&self) -> AlertTrigger
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AlertTrigger
impl Debug for AlertTrigger
Source§impl PartialEq for AlertTrigger
impl PartialEq for AlertTrigger
impl StructuralPartialEq for AlertTrigger
Auto Trait Implementations§
impl Freeze for AlertTrigger
impl RefUnwindSafe for AlertTrigger
impl Send for AlertTrigger
impl Sync for AlertTrigger
impl Unpin for AlertTrigger
impl UnsafeUnpin for AlertTrigger
impl UnwindSafe for AlertTrigger
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more