stripe/resources/generated/
application.rs

1// ======================================
2// This file was automatically generated.
3// ======================================
4
5use crate::ids::ApplicationId;
6use crate::params::Object;
7use serde::{Deserialize, Serialize};
8
9/// The resource representing a Stripe "Application".
10#[derive(Clone, Debug, Default, Deserialize, Serialize)]
11pub struct Application {
12    /// Unique identifier for the object.
13    pub id: ApplicationId,
14
15    // Always true for a deleted object
16    #[serde(default)]
17    pub deleted: bool,
18
19    /// The name of the application.
20    pub name: Option<String>,
21}
22
23impl Object for Application {
24    type Id = ApplicationId;
25    fn id(&self) -> Self::Id {
26        self.id.clone()
27    }
28    fn object(&self) -> &'static str {
29        "application"
30    }
31}