pub struct HttpPostRequestorConfig {
pub http_request_timeout: Duration,
pub max_redirects: u8,
pub max_requests_per_sec: Option<u32>,
}
Expand description
Common configuration for all native HttpPostRequestor
s
Fields§
§http_request_timeout: Duration
Timeout for HTTP POST request
Defaults to 30 seconds.
max_redirects: u8
Maximum number of HTTP redirects to follow
Defaults to 3
max_requests_per_sec: Option<u32>
Maximum number of requests per second.
If set to Some(0) or None
, there will be no limit.
Defaults to 10
Trait Implementations§
Source§impl Clone for HttpPostRequestorConfig
impl Clone for HttpPostRequestorConfig
Source§fn clone(&self) -> HttpPostRequestorConfig
fn clone(&self) -> HttpPostRequestorConfig
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 HttpPostRequestorConfig
impl Debug for HttpPostRequestorConfig
Source§impl Default for HttpPostRequestorConfig
impl Default for HttpPostRequestorConfig
Source§impl<'de> Deserialize<'de> for HttpPostRequestorConfig
impl<'de> Deserialize<'de> for HttpPostRequestorConfig
Source§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
Source§impl PartialEq for HttpPostRequestorConfig
impl PartialEq for HttpPostRequestorConfig
Source§impl Serialize for HttpPostRequestorConfig
impl Serialize for HttpPostRequestorConfig
impl StructuralPartialEq for HttpPostRequestorConfig
Auto Trait Implementations§
impl Freeze for HttpPostRequestorConfig
impl RefUnwindSafe for HttpPostRequestorConfig
impl Send for HttpPostRequestorConfig
impl Sync for HttpPostRequestorConfig
impl Unpin for HttpPostRequestorConfig
impl UnwindSafe for HttpPostRequestorConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more