pub struct WebhookEventType {
pub event_type: Option<String>,
pub description: Option<String>,
pub schema_version: Option<i64>,
pub extra: HashMap<String, Value>,
}Expand description
One event type the server can emit.
Fields§
§event_type: Option<String>Wire name of the event type (e.g. "alerts.contract.match").
description: Option<String>Human-readable description.
schema_version: Option<i64>Schema version of the event body.
extra: HashMap<String, Value>Forward-compatible bucket.
Trait Implementations§
Source§impl Clone for WebhookEventType
impl Clone for WebhookEventType
Source§fn clone(&self) -> WebhookEventType
fn clone(&self) -> WebhookEventType
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 WebhookEventType
impl Debug for WebhookEventType
Source§impl Default for WebhookEventType
impl Default for WebhookEventType
Source§fn default() -> WebhookEventType
fn default() -> WebhookEventType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookEventType
impl<'de> Deserialize<'de> for WebhookEventType
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 WebhookEventType
impl PartialEq for WebhookEventType
Source§fn eq(&self, other: &WebhookEventType) -> bool
fn eq(&self, other: &WebhookEventType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WebhookEventType
impl Serialize for WebhookEventType
impl Eq for WebhookEventType
impl StructuralPartialEq for WebhookEventType
Auto Trait Implementations§
impl Freeze for WebhookEventType
impl RefUnwindSafe for WebhookEventType
impl Send for WebhookEventType
impl Sync for WebhookEventType
impl Unpin for WebhookEventType
impl UnsafeUnpin for WebhookEventType
impl UnwindSafe for WebhookEventType
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