pub struct CallbackConfig {
pub url: String,
pub method: HttpMethod,
pub headers: HashMap<String, String>,
pub auth: Option<HttpAuth>,
pub enabled_events: Vec<CallbackEventType>,
pub include_state: bool,
pub retry: RetryConfig,
}Expand description
Callback configuration.
Fields§
§url: StringCallback URL.
method: HttpMethodHTTP method.
headers: HashMap<String, String>Headers to include.
auth: Option<HttpAuth>Authentication.
enabled_events: Vec<CallbackEventType>Enabled event types.
include_state: boolInclude state snapshot.
retry: RetryConfigRetry configuration.
Trait Implementations§
Source§impl Clone for CallbackConfig
impl Clone for CallbackConfig
Source§fn clone(&self) -> CallbackConfig
fn clone(&self) -> CallbackConfig
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 CallbackConfig
impl Debug for CallbackConfig
Source§impl<'de> Deserialize<'de> for CallbackConfig
impl<'de> Deserialize<'de> for CallbackConfig
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 CallbackConfig
impl RefUnwindSafe for CallbackConfig
impl Send for CallbackConfig
impl Sync for CallbackConfig
impl Unpin for CallbackConfig
impl UnsafeUnpin for CallbackConfig
impl UnwindSafe for CallbackConfig
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