pub struct WebhookEndpointCreateInput {
pub name: String,
pub callback_url: String,
pub is_active: Option<bool>,
pub event_types: Vec<String>,
}Expand description
Request body for
Client::create_webhook_endpoint.
name and callback_url are required. The Tango API enforces
unique(user, name) on endpoints; the SDK validates this client-side
for a cleaner error than the server’s 400.
Fields§
§name: StringHuman-readable name (must be unique per user).
callback_url: StringDestination URL.
is_active: Option<bool>Whether to enable on creation. Server defaults to true when omitted.
event_types: Vec<String>Event types to subscribe to. Empty means “all event types”.
Trait Implementations§
Source§impl Clone for WebhookEndpointCreateInput
impl Clone for WebhookEndpointCreateInput
Source§fn clone(&self) -> WebhookEndpointCreateInput
fn clone(&self) -> WebhookEndpointCreateInput
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 WebhookEndpointCreateInput
impl Debug for WebhookEndpointCreateInput
Source§impl<'de> Deserialize<'de> for WebhookEndpointCreateInput
impl<'de> Deserialize<'de> for WebhookEndpointCreateInput
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 WebhookEndpointCreateInput
impl PartialEq for WebhookEndpointCreateInput
Source§fn eq(&self, other: &WebhookEndpointCreateInput) -> bool
fn eq(&self, other: &WebhookEndpointCreateInput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for WebhookEndpointCreateInput
impl StructuralPartialEq for WebhookEndpointCreateInput
Auto Trait Implementations§
impl Freeze for WebhookEndpointCreateInput
impl RefUnwindSafe for WebhookEndpointCreateInput
impl Send for WebhookEndpointCreateInput
impl Sync for WebhookEndpointCreateInput
impl Unpin for WebhookEndpointCreateInput
impl UnsafeUnpin for WebhookEndpointCreateInput
impl UnwindSafe for WebhookEndpointCreateInput
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