pub struct WebhookEndpoint {
pub api_version: Option<String>,
pub application: Option<String>,
pub created: Timestamp,
pub description: Option<String>,
pub enabled_events: Vec<String>,
pub id: WebhookEndpointId,
pub livemode: bool,
pub metadata: HashMap<String, String>,
pub secret: Option<String>,
pub status: String,
pub url: String,
}
Expand description
You can configure webhook endpoints via the API to be notified about events that happen in your Stripe account or connected accounts.
Most users configure webhooks from the dashboard, which provides a user interface for registering and testing your webhook endpoints.
Related guide: Setting up webhooks
For more details see <https://stripe.com/docs/api/webhook_endpoints/object>.
Fields§
§api_version: Option<String>
The API version events are rendered as for this webhook endpoint.
application: Option<String>
The ID of the associated Connect application.
created: Timestamp
Time at which the object was created. Measured in seconds since the Unix epoch.
description: Option<String>
An optional description of what the webhook is used for.
enabled_events: Vec<String>
The list of events to enable for this endpoint.
['*']
indicates that all events are enabled, except those that require explicit selection.
id: WebhookEndpointId
Unique identifier for the object.
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
metadata: HashMap<String, String>
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
secret: Option<String>
The endpoint’s secret, used to generate webhook signatures. Only returned at creation.
status: String
The status of the webhook. It can be enabled
or disabled
.
url: String
The URL of the webhook endpoint.
Trait Implementations§
Source§impl Clone for WebhookEndpoint
impl Clone for WebhookEndpoint
Source§fn clone(&self) -> WebhookEndpoint
fn clone(&self) -> WebhookEndpoint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more