stripe/model/
secret_service_resource_scope.rs

1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct SecretServiceResourceScope {
5    ///The secret scope type.
6    #[serde(rename = "type")]
7    pub type_: String,
8    ///The user ID, if type is set to "user"
9    #[serde(skip_serializing_if = "Option::is_none")]
10    pub user: Option<String>,
11}
12impl std::fmt::Display for SecretServiceResourceScope {
13    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
14        write!(f, "{}", serde_json::to_string(self).unwrap())
15    }
16}