squareup 2.13.0

Rust SDK for the Square Developer API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Request body struct for the Create webhook subscription API

use serde::Serialize;

use super::WebhookSubscription;

/// This is a model struct for CreateWebhookSubscriptionRequest type.
#[derive(Clone, Debug, Eq, PartialEq, Serialize)]
pub struct CreateWebhookSubscriptionRequest {
    /// A unique string that identifies the CreateWebhookSubscription request.
    ///
    /// Max Length: 45
    pub idempotency_key: Option<String>,
    /// The subscription object to create.
    pub subscription: WebhookSubscription,
}