pub struct WebhookRequest {
pub filters: Vec<Value>,
pub resource: String,
pub target: String,
}
Fields§
§filters: Vec<Value>
An array of WebhookFilter objects to specify a whitelist of filters to apply to events from this webhook. If a webhook event passes any of the filters the event will be delivered; otherwise no event will be sent to the receiving server.
resource: String
A resource ID to subscribe to. Many Asana resources are valid to create webhooks on, but higher-level resources require filters.
target: String
The URL to receive the HTTP POST. The full URL will be used to deliver events from this webhook (including parameters) which allows encoding of application-specific state when the webhook is created.
Trait Implementations§
Source§impl Clone for WebhookRequest
impl Clone for WebhookRequest
Source§fn clone(&self) -> WebhookRequest
fn clone(&self) -> WebhookRequest
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 WebhookRequest
impl Debug for WebhookRequest
Source§impl Default for WebhookRequest
impl Default for WebhookRequest
Source§fn default() -> WebhookRequest
fn default() -> WebhookRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookRequest
impl<'de> Deserialize<'de> for WebhookRequest
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 Display for WebhookRequest
impl Display for WebhookRequest
Auto Trait Implementations§
impl Freeze for WebhookRequest
impl RefUnwindSafe for WebhookRequest
impl Send for WebhookRequest
impl Sync for WebhookRequest
impl Unpin for WebhookRequest
impl UnwindSafe for WebhookRequest
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