pub struct NewsQueryParams {
pub symbol: Option<String>,
pub start_date: Option<DateTime<Utc>>,
pub end_date: Option<DateTime<Utc>>,
pub limit: Option<u32>,
}Expand description
Parameters for querying news articles.
Fields§
§symbol: Option<String>Symbol filter
start_date: Option<DateTime<Utc>>Start date filter
end_date: Option<DateTime<Utc>>End date filter
limit: Option<u32>Maximum number of articles to return
Implementations§
Source§impl NewsQueryParams
impl NewsQueryParams
Sourcepub fn start_date(self, start_date: DateTime<Utc>) -> Self
pub fn start_date(self, start_date: DateTime<Utc>) -> Self
Set the start date filter.
Trait Implementations§
Source§impl Clone for NewsQueryParams
impl Clone for NewsQueryParams
Source§fn clone(&self) -> NewsQueryParams
fn clone(&self) -> NewsQueryParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NewsQueryParams
impl Debug for NewsQueryParams
Source§impl Default for NewsQueryParams
impl Default for NewsQueryParams
Source§impl<'de> Deserialize<'de> for NewsQueryParams
impl<'de> Deserialize<'de> for NewsQueryParams
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NewsQueryParams
impl RefUnwindSafe for NewsQueryParams
impl Send for NewsQueryParams
impl Sync for NewsQueryParams
impl Unpin for NewsQueryParams
impl UnsafeUnpin for NewsQueryParams
impl UnwindSafe for NewsQueryParams
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