pub struct WebhookTriggerPayload(pub Map<String, Value>);
Expand description
Payload for webhook trigger
JSON schema
{
"description": "Payload for webhook trigger",
"examples": [
{
"message": "The doc that brings words, data, & teams together."
}
],
"type": "object",
"additionalProperties": true,
"x-schema-name": "WebhookTriggerPayload"
}
Tuple Fields§
§0: Map<String, Value>
Methods from Deref<Target = Map<String, Value>>§
Sourcepub fn get<Q>(&self, key: &Q) -> Option<&Value>
pub fn get<Q>(&self, key: &Q) -> Option<&Value>
Returns a reference to the value corresponding to the key.
The key may be any borrowed form of the map’s key type, but the ordering on the borrowed form must match the ordering on the key type.
Sourcepub fn contains_key<Q>(&self, key: &Q) -> bool
pub fn contains_key<Q>(&self, key: &Q) -> bool
Returns true if the map contains a value for the specified key.
The key may be any borrowed form of the map’s key type, but the ordering on the borrowed form must match the ordering on the key type.
Trait Implementations§
Source§impl Clone for WebhookTriggerPayload
impl Clone for WebhookTriggerPayload
Source§fn clone(&self) -> WebhookTriggerPayload
fn clone(&self) -> WebhookTriggerPayload
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 WebhookTriggerPayload
impl Debug for WebhookTriggerPayload
Source§impl Deref for WebhookTriggerPayload
impl Deref for WebhookTriggerPayload
Source§impl<'de> Deserialize<'de> for WebhookTriggerPayload
impl<'de> Deserialize<'de> for WebhookTriggerPayload
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 From<&WebhookTriggerPayload> for WebhookTriggerPayload
impl From<&WebhookTriggerPayload> for WebhookTriggerPayload
Source§fn from(value: &WebhookTriggerPayload) -> Self
fn from(value: &WebhookTriggerPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WebhookTriggerPayload
impl RefUnwindSafe for WebhookTriggerPayload
impl Send for WebhookTriggerPayload
impl Sync for WebhookTriggerPayload
impl Unpin for WebhookTriggerPayload
impl UnwindSafe for WebhookTriggerPayload
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