pub struct Signal {Show 22 fields
pub id: String,
pub symbol: String,
pub company_name: String,
pub market: String,
pub title: String,
pub summary: String,
pub strategy_id: String,
pub strategy_name: String,
pub recommend_by: String,
pub expression: String,
pub key_fact_id: String,
pub key_catalyst: String,
pub analysis_price: f64,
pub conservative_price: f64,
pub benchmark_price: f64,
pub optimistic_price: f64,
pub outlook: Outlook,
pub outlook_desc: String,
pub status: SignalStatus,
pub json_data: String,
pub created_at: OffsetDateTime,
pub updated_at: OffsetDateTime,
}Expand description
One signal: a strategy’s take on a security, triggered by a catalyst.
Fields§
§id: StringSignal ID, e.g. sign_992_1a00c9425c3_48ab. Pass it to
crate::SignalContext::signal for the full record.
symbol: StringSecurity symbol, e.g. 992.HK
company_name: StringCompany name
market: StringMarket the security trades in, e.g. HK
title: StringSignal headline
summary: StringNatural-language summary of the signal, in Markdown
strategy_id: StringStrategy ID that produced the signal
strategy_name: StringStrategy name that produced the signal
recommend_by: StringWho recommended the signal; empty for strategy-generated signals
expression: StringStrategy expression, e.g. 992.HK:GROWTH:long
key_fact_id: StringID of the fact that triggered the signal
key_catalyst: StringDisplay label of the catalyst that triggered the signal, e.g.
Q1 Revenue Surge. This is prose meant for display — filtering with
SignalsOptions::catalyst_name matches the underlying factor name
instead
analysis_price: f64Price the analysis was based on
conservative_price: f64Conservative-scenario target price
benchmark_price: f64Benchmark-scenario target price
optimistic_price: f64Optimistic-scenario target price
outlook: OutlookOutlook the strategy takes on the security
outlook_desc: StringOutlook label in the caller’s language — the localized rendering of
Signal::outlook
status: SignalStatusWhere the signal is in its lifecycle
json_data: StringFull analysis behind the signal, as a JSON document: strategy fit scores, valuation scenarios, evidence sources and related fact IDs. Carried verbatim because its shape is strategy-specific.
created_at: OffsetDateTimeCreation time
updated_at: OffsetDateTimeLast update time
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Signal
impl<'de> Deserialize<'de> for Signal
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>,
Auto Trait Implementations§
impl Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnsafeUnpin for Signal
impl UnwindSafe for Signal
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>,
§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>
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