pub struct HttpPushSenderConfig {
pub timeout: Duration,
pub fail_on_error: bool,
pub validate_urls: bool,
}Expand description
Configuration for HttpPushSender.
Fields§
§timeout: DurationHTTP request timeout (default: 30s).
fail_on_error: boolIf true, push sending errors abort execution.
validate_urls: boolIf true (default), reject push URLs that target loopback, private, link-local, multicast, unspecified, or cloud-metadata addresses, and URLs whose scheme is not http/https. Disable only when pushing to local webhooks in trusted test environments.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpPushSenderConfig
impl RefUnwindSafe for HttpPushSenderConfig
impl Send for HttpPushSenderConfig
impl Sync for HttpPushSenderConfig
impl Unpin for HttpPushSenderConfig
impl UnsafeUnpin for HttpPushSenderConfig
impl UnwindSafe for HttpPushSenderConfig
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> 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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request