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>, }
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>
Expand description
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>
Expand description
When the webhook was created
event_name: Option<EventName>
id: Option<String>
Expand description
ID of the Webhook
inbox_id: Option<String>
Expand description
The inbox that the Webhook will be triggered by
method: Option<Method>
Expand description
HTTP method that your server endpoint must listen for
name: Option<String>
Expand description
Name of the webhook
payload_json_schema: Option<String>
Expand description
JSON Schema for the payload that will be sent to your URL via the HTTP method described.
updated_at: String
url: Option<String>
Expand description
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]
impl WebhookDto
[src]pub fn new(updated_at: String) -> 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. 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
impl Clone for WebhookDto
[src]
impl Clone for WebhookDto
[src]fn clone(&self) -> WebhookDto
[src]
fn clone(&self) -> WebhookDto
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for WebhookDto
[src]
impl Debug for WebhookDto
[src]impl<'de> Deserialize<'de> for WebhookDto
[src]
impl<'de> Deserialize<'de> for WebhookDto
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<WebhookDto> for WebhookDto
[src]
impl PartialEq<WebhookDto> for WebhookDto
[src]fn eq(&self, other: &WebhookDto) -> bool
[src]
fn eq(&self, other: &WebhookDto) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &WebhookDto) -> bool
[src]
fn ne(&self, other: &WebhookDto) -> bool
[src]This method tests for !=
.
impl Serialize for WebhookDto
[src]
impl Serialize for WebhookDto
[src]impl StructuralPartialEq for WebhookDto
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,