[][src]Struct mailslurp::models::create_webhook_options::CreateWebhookOptions

pub struct CreateWebhookOptions {
    pub basic_auth: Option<BasicAuthOptions>,
    pub name: Option<String>,
    pub url: Option<String>,
}

CreateWebhookOptions : Options for creating a webhook. Webhooks can be attached to inboxes and MailSlurp will POST a webhook payload to the URL specified whenever the inbox receives an email. Webhooks are great for processing many inbound emails.

Fields

basic_auth: Option<BasicAuthOptions>name: Option<String>

Optional name for the webhook

url: Option<String>

Public URL on your server that MailSlurp can post WebhookNotification payload to when an email is received. The payload of the submitted JSON is described by https://api.mailslurp.com/schemas/webhook-payload

Implementations

impl CreateWebhookOptions[src]

pub fn new() -> CreateWebhookOptions[src]

Options for creating a webhook. Webhooks can be attached to inboxes and MailSlurp will POST a webhook payload to the URL specified whenever the inbox receives an email. Webhooks are great for processing many inbound emails.

Trait Implementations

impl Clone for CreateWebhookOptions[src]

impl Debug for CreateWebhookOptions[src]

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

impl PartialEq<CreateWebhookOptions> for CreateWebhookOptions[src]

impl Serialize for CreateWebhookOptions[src]

impl StructuralPartialEq for CreateWebhookOptions[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.