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
//! Model struct for SubscriptionEventInfo type

use serde::{Deserialize, Serialize};

use super::enums::SubscriptionEventInfoCode;

/// Provides information about the subscription event.
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub struct SubscriptionEventInfo {
    /// A human-readable explanation for the event.
    pub detail: Option<String>,
    /// An info code indicating the subscription event that occurred.
    pub code: Option<SubscriptionEventInfoCode>,
}