pub struct WebhookAttributes {
pub url: String,
pub max_retry: i32,
pub retry_interval_sec: i32,
pub post_timeout_sec: i32,
pub security_token: Option<String>,
pub compression: String,
}Expand description
Configuration for delivering stream batches to an HTTP webhook endpoint.
Fields§
§url: StringDestination URL that receives batched stream payloads.
max_retry: i32Maximum number of retry attempts for a failed delivery.
retry_interval_sec: i32Seconds to wait between retry attempts.
post_timeout_sec: i32Timeout in seconds for each POST request.
security_token: Option<String>Optional token included with each request so the receiver can verify authenticity.
compression: StringCompression applied to the payload (e.g. none, gzip).
Trait Implementations§
Source§impl Clone for WebhookAttributes
impl Clone for WebhookAttributes
Source§fn clone(&self) -> WebhookAttributes
fn clone(&self) -> WebhookAttributes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WebhookAttributes
impl Debug for WebhookAttributes
Source§impl<'de> Deserialize<'de> for WebhookAttributes
impl<'de> Deserialize<'de> for WebhookAttributes
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
Auto Trait Implementations§
impl Freeze for WebhookAttributes
impl RefUnwindSafe for WebhookAttributes
impl Send for WebhookAttributes
impl Sync for WebhookAttributes
impl Unpin for WebhookAttributes
impl UnsafeUnpin for WebhookAttributes
impl UnwindSafe for WebhookAttributes
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