pub fn new() -> Result<HNClient> {
        let timeout = config::get_config().client_timeout;
        Ok(HNClient {
            client: ureq::AgentBuilder::new()
                .timeout(std::time::Duration::from_secs(timeout))
                .build(),
        })
    }
/// Create a new Hacker News Client
Create a new Hacker News Client
Create a new Hacker News Client
pub fn new() -> Result<HNClient> {
        let timeout = config::get_config().client_timeout;
        Ok(HNClient {
            client: ureq::AgentBuilder::new()
                .timeout(std::time::Duration::from_secs(timeout))
                .build(),
        })
    }
pub fn new ( ) -> Result < HNClient > { let timeout = config :: get_config ( ) . client_timeout ; Ok ( HNClient { client : ureq :: AgentBuilder :: new ( ) . timeout ( std :: time :: Duration :: from_secs ( timeout ) ) . build ( ) , } ) }
Create a new Hacker News Client
Create a new Hacker News Client