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: String
url: 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
fn 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for WebhookDto
impl Send for WebhookDto
impl Sync for WebhookDto
impl Unpin for WebhookDto
impl UnwindSafe for WebhookDto
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more