pub struct WebhookCreateInput {
pub label: Option<String>,
pub id: Option<String>,
pub enabled: Option<bool>,
pub secret: Option<String>,
pub url: Option<String>,
pub resource_types: Option<Vec<String>>,
pub team_id: Option<String>,
pub all_public_teams: Option<bool>,
}Fields§
§label: Option<String>Label for the webhook.
id: Option<String>The identifier in UUID v4 format. If none is provided, the backend will generate one.
enabled: Option<bool>Whether this webhook is enabled.
secret: Option<String>A secret token used to sign the webhook payload.
url: Option<String>The URL that will be called on data changes.
resource_types: Option<Vec<String>>List of resources the webhook should subscribe to.
team_id: Option<String>The identifier or key of the team associated with the Webhook.
all_public_teams: Option<bool>Whether this webhook is enabled for all public teams.
Trait Implementations§
Source§impl Clone for WebhookCreateInput
impl Clone for WebhookCreateInput
Source§fn clone(&self) -> WebhookCreateInput
fn clone(&self) -> WebhookCreateInput
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 WebhookCreateInput
impl Debug for WebhookCreateInput
Source§impl Default for WebhookCreateInput
impl Default for WebhookCreateInput
Source§fn default() -> WebhookCreateInput
fn default() -> WebhookCreateInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookCreateInput
impl<'de> Deserialize<'de> for WebhookCreateInput
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 WebhookCreateInput
impl RefUnwindSafe for WebhookCreateInput
impl Send for WebhookCreateInput
impl Sync for WebhookCreateInput
impl Unpin for WebhookCreateInput
impl UnwindSafe for WebhookCreateInput
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