pub fn new(quiet: bool, no_color: bool) -> Result<Self> {
        let client = reqwest::ClientBuilder::new()
            .gzip(true)
            .user_agent(USER_AGENT)
            .build()?;

        let client = Self {
            client:   client,
            no_color: no_color,
            quiet:    quiet,
        };

        Ok(client)
    }
// Return a new reqwest client with our user-agent
Return a new reqwest client with our user-agent
Return a new reqwest client with our user - agent
pub fn new(quiet: bool, no_color: bool) -> Result<Self> {
        let client = reqwest::ClientBuilder::new()
            .gzip(true)
            .user_agent(USER_AGENT)
            .build()?;
        let client = Self {
            client:   client,
            no_color: no_color,
            quiet:    quiet,
        };
        Ok(client)
    }
pub fn new ( quiet : bool , no_color : bool ) -> Result < Self > { let client = reqwest :: ClientBuilder :: new ( ) . gzip ( true ) . user_agent ( USER_AGENT ) . build ( ) ? ; let client = Self { client : client , no_color : no_color , quiet : quiet , } ; Ok ( client ) }
Return a new reqwest client with our user-agent
Return a new reqwest client with our user - agent
quiet
bool
no_color
bool
quiet
bool
no_color
bool