pub struct NewsOptions {
pub limit: Option<u32>,
pub time_range: Option<String>,
pub country: Option<String>,
pub include_domains: Option<Vec<String>>,
pub exclude_domains: Option<Vec<String>>,
pub scrape_results: Option<bool>,
pub scrape_options: Option<ScrapeOptions>,
pub max_age: Option<u64>,
}Expand description
Narrows a news search. A search costs 1 credit, and one that finds nothing is free.
Fields§
§limit: Option<u32>§time_range: Option<String>One of “hour”, “day”, “week” or “month” (default “week”).
country: Option<String>§include_domains: Option<Vec<String>>§exclude_domains: Option<Vec<String>>§scrape_results: Option<bool>§scrape_options: Option<ScrapeOptions>§max_age: Option<u64>Trait Implementations§
Source§impl Clone for NewsOptions
impl Clone for NewsOptions
Source§impl Debug for NewsOptions
impl Debug for NewsOptions
Source§impl Default for NewsOptions
impl Default for NewsOptions
Auto Trait Implementations§
impl Forget for NewsOptions
impl Freeze for NewsOptions
impl Move for NewsOptions
impl RefUnwindSafe for NewsOptions
impl Send for NewsOptions
impl Sync for NewsOptions
impl Unpin for NewsOptions
impl UnsafeUnpin for NewsOptions
impl UnwindSafe for NewsOptions
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