pub struct FactNlInfo {
pub title: String,
pub sub_title: String,
pub summary: String,
pub invest_anal: String,
pub eli_explain: String,
}Expand description
The natural-language rendering of a fact, in the caller’s language.
Fields§
§title: StringHeadline
sub_title: StringSub-headline
summary: StringWhat happened, as a JSON array of {tag, value} entries carried in a
string. Use FactNlInfo::summary_tags to read it.
invest_anal: StringWhat it may mean for an investor, in the same JSON-in-a-string shape as
FactNlInfo::summary. Use FactNlInfo::invest_anal_tags to read
it.
eli_explain: StringA plain-language walk-through of the fact, in the same JSON-in-a-string
shape as FactNlInfo::summary. Use FactNlInfo::eli_explain_tags
to read it.
Implementations§
Source§impl FactNlInfo
impl FactNlInfo
Parse FactNlInfo::summary into its {tag, value} entries.
Returns an empty list when the field is empty or not the expected JSON — the raw string stays available either way.
Parse FactNlInfo::invest_anal into its {tag, value} entries.
Returns an empty list when the field is empty or not the expected JSON — the raw string stays available either way.
Parse FactNlInfo::eli_explain into its {tag, value} entries.
Returns an empty list when the field is empty or not the expected JSON — the raw string stays available either way.
Trait Implementations§
Source§impl Clone for FactNlInfo
impl Clone for FactNlInfo
Source§fn clone(&self) -> FactNlInfo
fn clone(&self) -> FactNlInfo
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 FactNlInfo
impl Debug for FactNlInfo
Source§impl Default for FactNlInfo
impl Default for FactNlInfo
Source§fn default() -> FactNlInfo
fn default() -> FactNlInfo
Source§impl<'de> Deserialize<'de> for FactNlInfo
impl<'de> Deserialize<'de> for FactNlInfo
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 FactNlInfo
impl RefUnwindSafe for FactNlInfo
impl Send for FactNlInfo
impl Sync for FactNlInfo
impl Unpin for FactNlInfo
impl UnsafeUnpin for FactNlInfo
impl UnwindSafe for FactNlInfo
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