pub struct NewsAPIConfig {
pub api_key: String,
pub timeout: Duration,
}Expand description
NewsAPI configuration
Fields§
§api_key: StringAPI key from newsapi.org
timeout: DurationRequest timeout
Trait Implementations§
Source§impl Clone for NewsAPIConfig
impl Clone for NewsAPIConfig
Source§fn clone(&self) -> NewsAPIConfig
fn clone(&self) -> NewsAPIConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 NewsAPIConfig
impl Debug for NewsAPIConfig
Auto Trait Implementations§
impl Freeze for NewsAPIConfig
impl RefUnwindSafe for NewsAPIConfig
impl Send for NewsAPIConfig
impl Sync for NewsAPIConfig
impl Unpin for NewsAPIConfig
impl UnwindSafe for NewsAPIConfig
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