pub struct WebhookAlertCreateInput {
pub name: String,
pub query_type: String,
pub filters: Value,
pub frequency: Option<String>,
pub cron_expression: Option<String>,
pub endpoint: Option<String>,
}Expand description
Request body for
Client::create_webhook_alert.
name, query_type, and a non-empty filters map are required.
query_type is SINGULAR ("contract", not "contracts"). For accounts
with multiple webhook endpoints, set endpoint to the destination UUID;
single-endpoint accounts may omit it.
Fields§
§name: StringHuman-readable name.
query_type: StringSingular resource type (e.g. "contract").
filters: ValueFilter map applied against new resources (non-empty).
frequency: Option<String>"realtime", "hourly", etc.
cron_expression: Option<String>Cron expression when frequency = "custom".
endpoint: Option<String>Destination endpoint UUID (required when the account has more than one).
Trait Implementations§
Source§impl Clone for WebhookAlertCreateInput
impl Clone for WebhookAlertCreateInput
Source§fn clone(&self) -> WebhookAlertCreateInput
fn clone(&self) -> WebhookAlertCreateInput
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 WebhookAlertCreateInput
impl Debug for WebhookAlertCreateInput
Source§impl<'de> Deserialize<'de> for WebhookAlertCreateInput
impl<'de> Deserialize<'de> for WebhookAlertCreateInput
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 WebhookAlertCreateInput
impl PartialEq for WebhookAlertCreateInput
Source§fn eq(&self, other: &WebhookAlertCreateInput) -> bool
fn eq(&self, other: &WebhookAlertCreateInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WebhookAlertCreateInput
impl Serialize for WebhookAlertCreateInput
impl StructuralPartialEq for WebhookAlertCreateInput
Auto Trait Implementations§
impl Freeze for WebhookAlertCreateInput
impl RefUnwindSafe for WebhookAlertCreateInput
impl Send for WebhookAlertCreateInput
impl Sync for WebhookAlertCreateInput
impl Unpin for WebhookAlertCreateInput
impl UnsafeUnpin for WebhookAlertCreateInput
impl UnwindSafe for WebhookAlertCreateInput
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