Struct asana::models::webhook_response::WebhookResponse
source · [−]pub struct WebhookResponse {
pub gid: Option<String>,
pub resource_type: Option<String>,
pub active: Option<bool>,
pub resource: Option<Box<AsanaNamedResource>>,
pub target: Option<String>,
pub created_at: Option<String>,
pub last_failure_at: Option<String>,
pub last_failure_content: Option<String>,
pub last_success_at: Option<String>,
pub filters: Option<Vec<WebhookFilter>>,
}
Fields
gid: Option<String>
Globally unique identifier of the resource, as a string.
resource_type: Option<String>
The base type of this resource.
active: Option<bool>
If true, the webhook will send events - if false it is considered inactive and will not generate events.
resource: Option<Box<AsanaNamedResource>>
target: Option<String>
The URL to receive the HTTP POST.
created_at: Option<String>
The time at which this resource was created.
last_failure_at: Option<String>
The timestamp when the webhook last received an error when sending an event to the target.
last_failure_content: Option<String>
The contents of the last error response sent to the webhook when attempting to deliver events to the target.
last_success_at: Option<String>
The timestamp when the webhook last successfully sent an event to the target.
filters: Option<Vec<WebhookFilter>>
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 WebhookResponse
impl WebhookResponse
pub fn new() -> WebhookResponse
Trait Implementations
sourceimpl Clone for WebhookResponse
impl Clone for WebhookResponse
sourcefn clone(&self) -> WebhookResponse
fn clone(&self) -> WebhookResponse
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 WebhookResponse
impl Debug for WebhookResponse
sourceimpl<'de> Deserialize<'de> for WebhookResponse
impl<'de> Deserialize<'de> for WebhookResponse
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<WebhookResponse> for WebhookResponse
impl PartialEq<WebhookResponse> for WebhookResponse
sourcefn eq(&self, other: &WebhookResponse) -> bool
fn eq(&self, other: &WebhookResponse) -> bool
sourceimpl Serialize for WebhookResponse
impl Serialize for WebhookResponse
impl StructuralPartialEq for WebhookResponse
Auto Trait Implementations
impl RefUnwindSafe for WebhookResponse
impl Send for WebhookResponse
impl Sync for WebhookResponse
impl Unpin for WebhookResponse
impl UnwindSafe for WebhookResponse
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