pub struct TopHeadlinesParams { /* private fields */ }Expand description
Parameters for the /top-headlines endpoint.
See the API documentation for more details.
Implementations§
Source§impl TopHeadlinesParams
impl TopHeadlinesParams
Sourcepub fn country(self, country: impl Into<String>) -> Self
pub fn country(self, country: impl Into<String>) -> Self
Sets the country code (e.g. “us” for United States).
Sourcepub fn category(self, category: impl Into<String>) -> Self
pub fn category(self, category: impl Into<String>) -> Self
Sets the category (e.g. “business”, “entertainment”, “health”, “science”, “sports”, “technology”).
Trait Implementations§
Source§impl Clone for TopHeadlinesParams
impl Clone for TopHeadlinesParams
Source§impl Debug for TopHeadlinesParams
impl Debug for TopHeadlinesParams
Auto Trait Implementations§
impl Freeze for TopHeadlinesParams
impl RefUnwindSafe for TopHeadlinesParams
impl Send for TopHeadlinesParams
impl Sync for TopHeadlinesParams
impl Unpin for TopHeadlinesParams
impl UnsafeUnpin for TopHeadlinesParams
impl UnwindSafe for TopHeadlinesParams
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