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