Struct asana::models::webhook_request::WebhookRequest
source · [−]pub struct WebhookRequest {
pub resource: String,
pub target: String,
pub filters: Option<Vec<WebhookFilter>>,
}
Fields
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.
filters: Option<Vec<WebhookFilter>>
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.
Implementations
sourceimpl WebhookRequest
impl WebhookRequest
pub fn new(resource: String, target: String) -> WebhookRequest
Trait Implementations
sourceimpl Clone for WebhookRequest
impl Clone for WebhookRequest
sourcefn clone(&self) -> WebhookRequest
fn clone(&self) -> WebhookRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for WebhookRequest
impl Debug for WebhookRequest
sourceimpl<'de> Deserialize<'de> for WebhookRequest
impl<'de> Deserialize<'de> for WebhookRequest
sourcefn 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
sourceimpl PartialEq<WebhookRequest> for WebhookRequest
impl PartialEq<WebhookRequest> for WebhookRequest
sourcefn eq(&self, other: &WebhookRequest) -> bool
fn eq(&self, other: &WebhookRequest) -> bool
sourceimpl Serialize for WebhookRequest
impl Serialize for WebhookRequest
impl StructuralPartialEq for WebhookRequest
Auto Trait Implementations
impl RefUnwindSafe for WebhookRequest
impl Send for WebhookRequest
impl Sync for WebhookRequest
impl Unpin for WebhookRequest
impl UnwindSafe for WebhookRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more