pub struct NewsConfig {
pub newsapi_key: String,
pub cryptopanic_key: String,
pub base_url: String,
pub max_articles: u32,
pub freshness_hours: u32,
pub min_credibility_score: u32,
}Expand description
Configuration for news aggregation services
Fields§
§newsapi_key: StringNewsAPI.org API key
cryptopanic_key: StringCryptoPanic API key
base_url: StringBase URL for news aggregation service
max_articles: u32Maximum articles per request (default: 50)
freshness_hours: u32News freshness window in hours (default: 24)
min_credibility_score: u32Minimum credibility score (0-100)
Trait Implementations§
Source§impl Clone for NewsConfig
impl Clone for NewsConfig
Source§fn clone(&self) -> NewsConfig
fn clone(&self) -> NewsConfig
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 NewsConfig
impl Debug for NewsConfig
Auto Trait Implementations§
impl Freeze for NewsConfig
impl RefUnwindSafe for NewsConfig
impl Send for NewsConfig
impl Sync for NewsConfig
impl Unpin for NewsConfig
impl UnwindSafe for NewsConfig
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