pub struct Webhook {
pub id: String,
pub user_id: Option<String>,
pub request_url: Option<String>,
pub event_types: Vec<String>,
pub extra: Extra,
}Expand description
A webhook that notifies an external URL on Actor events.
Fields§
§id: StringUnique webhook ID.
user_id: Option<String>ID of the owner.
request_url: Option<String>The URL that receives the webhook POST request.
event_types: Vec<String>Event types that trigger this webhook.
extra: ExtraAny other fields returned by the API.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Webhook
impl<'de> Deserialize<'de> for Webhook
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 Webhook
impl RefUnwindSafe for Webhook
impl Send for Webhook
impl Sync for Webhook
impl Unpin for Webhook
impl UnsafeUnpin for Webhook
impl UnwindSafe for Webhook
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