pub struct AlertData<'a> {
pub request: HistoryRequest,
pub bars: &'a [Bar],
pub history_complete: bool,
pub drawings: &'a [Drawing],
}Expand description
Loaded live bars a host can lend to alerts with the same feed view. Supply only current, unpaused data, never replay bars or incomplete history.
Fields§
§request: HistoryRequestThe symbol, interval, calendar, session and conversion of these bars.
bars: &'a [Bar]Sorted bars with unique opening times.
history_complete: boolWhether the feed has no older history.
drawings: &'a [Drawing]Current drawings in the same bar coordinates, including edits not yet stored.
Auto Trait Implementations§
impl<'a> Freeze for AlertData<'a>
impl<'a> RefUnwindSafe for AlertData<'a>
impl<'a> Send for AlertData<'a>
impl<'a> Sync for AlertData<'a>
impl<'a> Unpin for AlertData<'a>
impl<'a> UnsafeUnpin for AlertData<'a>
impl<'a> UnwindSafe for AlertData<'a>
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> 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