pub struct AlertInputs {
pub timezone: Option<TimezoneId>,
pub calendar: Option<AlertCalendar>,
pub sources: Vec<(AlertSource, String)>,
pub extended_hours: bool,
pub conversion: Option<String>,
pub count: usize,
pub start: Option<DateTime<Utc>>,
pub visible: Option<(DateTime<Utc>, DateTime<Utc>)>,
pub logarithmic: bool,
pub studies: Vec<AlertStudy>,
}Expand description
The source view and study definitions captured when an alert is created. The alert’s symbol and timeframe select its main series; auxiliary requests follow these saved studies.
Fields§
§timezone: Option<TimezoneId>Calendar zone; None follows the system’s local calendar.
calendar: Option<AlertCalendar>Exchange calendar of the creation symbol. Other symbols resolve their own calendars.
sources: Vec<(AlertSource, String)>Source choices shown when editing, independent of the currently displayed chart.
extended_hours: boolInclude extended trading sessions.
conversion: Option<String>Host currency or unit conversion.
count: usizeInitial main-series history size when no start time was available.
start: Option<DateTime<Utc>>Oldest main bar used at creation. Later evaluations retain this seed.
visible: Option<(DateTime<Utc>, DateTime<Utc>)>Creation window for studies whose calculation depends on visible bars, inclusive.
logarithmic: boolDrawing levels interpolate logarithmically on a logarithmic source scale.
studies: Vec<AlertStudy>Independent calculation definitions, including study dependencies.
Implementations§
Source§impl AlertInputs
impl AlertInputs
Sourcepub fn add_sources_from(&mut self, other: &Self)
pub fn add_sources_from(&mut self, other: &Self)
Offer newly available study sources during an explicit edit. Existing identifiers keep their original definitions, including when another chart reuses an identifier.
Trait Implementations§
Source§impl Clone for AlertInputs
impl Clone for AlertInputs
Source§fn clone(&self) -> AlertInputs
fn clone(&self) -> AlertInputs
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AlertInputs
impl Debug for AlertInputs
Source§impl Default for AlertInputs
impl Default for AlertInputs
Source§impl<'de> Deserialize<'de> for AlertInputs
impl<'de> Deserialize<'de> for AlertInputs
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>,
Source§impl PartialEq for AlertInputs
impl PartialEq for AlertInputs
Source§impl Serialize for AlertInputs
impl Serialize for AlertInputs
impl StructuralPartialEq for AlertInputs
Auto Trait Implementations§
impl Freeze for AlertInputs
impl RefUnwindSafe for AlertInputs
impl Send for AlertInputs
impl Sync for AlertInputs
impl Unpin for AlertInputs
impl UnsafeUnpin for AlertInputs
impl UnwindSafe for AlertInputs
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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