[][src]Struct stripe::CreateWebhookEndpoint

pub struct CreateWebhookEndpoint<'a> {
    pub api_version: Option<ApiVersion>,
    pub connect: Option<bool>,
    pub enabled_events: Vec<EventFilter>,
    pub expand: &'a [&'a str],
    pub url: &'a str,
}

The parameters for WebhookEndpoint::create.

Fields

api_version: Option<ApiVersion>

Events sent to this endpoint will be generated with this Stripe Version instead of your account's default Stripe Version.

connect: Option<bool>

Whether this endpoint should receive events from connected accounts (true), or your account (false).

enabled_events: Vec<EventFilter>

The list of events to enable for this endpoint.

You may specify ['*'] to enable all events.

expand: &'a [&'a str]

Specifies which fields in the response should be expanded.

url: &'a str

The URL of the webhook endpoint.

Methods

impl<'a> CreateWebhookEndpoint<'a>[src]

pub fn new(enabled_events: Vec<EventFilter>, url: &'a str) -> Self[src]

Trait Implementations

impl<'a> Clone for CreateWebhookEndpoint<'a>[src]

impl<'a> Debug for CreateWebhookEndpoint<'a>[src]

impl<'a> Serialize for CreateWebhookEndpoint<'a>[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> Same<T> for T

type Output = T

Should always be Self