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

pub struct WebhookDto {
    pub basic_auth: Option<bool>,
    pub created_at: Option<String>,
    pub event_name: Option<EventName>,
    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>,
    pub user_id: Option<String>,
}
Expand description

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. A webhook entity should have a URL that points to your server. Your server should accept HTTP/S POST requests and return a success 200. MailSlurp will retry your webhooks if they fail. See https://api.mailslurp.com/schemas/webhook-payload for the payload schema.

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

event_name: Option<EventName>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.

user_id: Option<String>

User ID of the Webhook

Implementations

Representation of a webhook for an inbox. The URL specified will be using by MailSlurp whenever an email is received by the attached inbox. A webhook entity should have a URL that points to your server. Your server should accept HTTP/S POST requests and return a success 200. MailSlurp will retry your webhooks if they fail. See https://api.mailslurp.com/schemas/webhook-payload for the payload schema.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.