[][src]Struct mailslurp::models::webhook_dto::WebhookDto

pub struct WebhookDto {
    pub basic_auth: Option<bool>,
    pub created_at: Option<String>,
    pub id: Option<String>,
    pub inbox_id: Option<String>,
    pub method: Option<Method>,
    pub name: Option<String>,
    pub payload_json_schema: Option<String>,
    pub updated_at: String,
    pub url: Option<String>,
}

WebhookDto : Representation of a webhook for an inbox. The URL specified will be using by MailSlurp whenever an email is received by the attached inbox.

Fields

basic_auth: Option<bool>

Does webhook expect basic authentication? If true it means you created this webhook with a username and password. MailSlurp will use these in the URL to authenticate itself.

created_at: Option<String>

When the webhook was created

id: Option<String>

ID of the Webhook

inbox_id: Option<String>

The inbox that the Webhook will be triggered by

method: Option<Method>

HTTP method that your server endpoint must listen for

name: Option<String>

Name of the webhook

payload_json_schema: Option<String>

JSON Schema for the payload that will be sent to your URL via the HTTP method described.

updated_at: Stringurl: Option<String>

URL of your server that the webhook will be sent to. The schema of the JSON that is sent is described by the payloadJsonSchema.

Implementations

impl WebhookDto[src]

pub fn new(updated_at: String) -> WebhookDto[src]

Representation of a webhook for an inbox. The URL specified will be using by MailSlurp whenever an email is received by the attached inbox.

Trait Implementations

impl Clone for WebhookDto[src]

impl Debug for WebhookDto[src]

impl<'de> Deserialize<'de> for WebhookDto[src]

impl PartialEq<WebhookDto> for WebhookDto[src]

impl Serialize for WebhookDto[src]

impl StructuralPartialEq for WebhookDto[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.