#[non_exhaustive]pub struct NewsQuery {
pub symbols: Vec<String>,
pub topics: Vec<String>,
pub providers: Vec<String>,
pub highlights: bool,
pub limit: usize,
}Expand description
The stories a news or highlights panel asks Datafeed::news for.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.symbols: Vec<String>Stories about any of these symbols, or about the whole market when empty.
topics: Vec<String>Only stories of these topics, in the values the feed supports, or of every topic when empty.
providers: Vec<String>Only stories from these providers, in the identifiers the feed uses, or from every provider when empty.
highlights: boolShort summaries of what moves the market or the symbol, instead of headlines.
limit: usizeStories wanted at most.
Trait Implementations§
impl Eq for NewsQuery
impl StructuralPartialEq for NewsQuery
Auto Trait Implementations§
impl Freeze for NewsQuery
impl RefUnwindSafe for NewsQuery
impl Send for NewsQuery
impl Sync for NewsQuery
impl Unpin for NewsQuery
impl UnsafeUnpin for NewsQuery
impl UnwindSafe for NewsQuery
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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