Struct url_bot_rs::config::Http
source · [−]pub struct Http {
pub timeout_s: u64,
pub max_redirections: u8,
pub max_retries: u8,
pub retry_delay_s: u64,
pub accept_lang: String,
pub user_agent: Option<String>,
}
Fields
timeout_s: u64
max_redirections: u8
max_retries: u8
retry_delay_s: u64
accept_lang: String
user_agent: Option<String>
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Http
impl UnwindSafe for Http
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.