pub struct Webhook<'a> {Show 14 fields
pub active: bool,
pub created_at: Datetime,
pub description: Option<CowStr<'a>>,
pub error_count: Option<i64>,
pub events: Vec<CowStr<'a>>,
pub id: CowStr<'a>,
pub last_triggered: Option<Datetime>,
pub name: Option<CowStr<'a>>,
pub prefix: Option<CowStr<'a>>,
pub rewrite: Option<Vec<RewriteRule<'a>>>,
pub suffix: Option<CowStr<'a>>,
pub updated_at: Option<Datetime>,
pub url: Uri<'a>,
pub extra_data: BTreeMap<SmolStr, Data<'a>>,
}Expand description
A webhook configuration for receiving Streamplace events.
Fields§
§active: boolWhether this webhook is currently active.
created_at: DatetimeWhen this webhook was created.
description: Option<CowStr<'a>>A description of what this webhook is used for.
error_count: Option<i64>Number of consecutive errors for this webhook.
events: Vec<CowStr<'a>>The types of events this webhook should receive.
id: CowStr<'a>Unique identifier for this webhook.
last_triggered: Option<Datetime>When this webhook was last triggered.
name: Option<CowStr<'a>>A user-friendly name for this webhook.
prefix: Option<CowStr<'a>>Text to prepend to webhook messages.
rewrite: Option<Vec<RewriteRule<'a>>>Text replacement rules for webhook messages.
suffix: Option<CowStr<'a>>Text to append to webhook messages.
updated_at: Option<Datetime>When this webhook was last updated.
url: Uri<'a>The webhook URL where events will be sent.
extra_data: BTreeMap<SmolStr, Data<'a>>Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Webhook<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Webhook<'a>
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<'a> IntoStatic for Webhook<'a>
impl<'a> IntoStatic for Webhook<'a>
impl<'a> Eq for Webhook<'a>
impl<'a> StructuralPartialEq for Webhook<'a>
Auto Trait Implementations§
impl<'a> Freeze for Webhook<'a>
impl<'a> RefUnwindSafe for Webhook<'a>
impl<'a> Send for Webhook<'a>
impl<'a> Sync for Webhook<'a>
impl<'a> Unpin for Webhook<'a>
impl<'a> UnwindSafe for Webhook<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.