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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
use serde::{Serialize, Deserialize};
#[derive(Debug, Serialize, Deserialize, Default)]
pub struct ScimUserResource {
pub schemas: Option<Vec<String>>,
pub id: Option<String>,
#[serde(rename = "userName")]
pub user_name: Option<String>,
pub name: Option<serde_json::Value>,
#[serde(rename = "externalId")]
pub external_id: Option<String>,
pub active: Option<bool>,
pub meta: Option<serde_json::Value>,
}
impl std::fmt::Display for ScimUserResource {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
write!(f, "{}", serde_json::to_string(self).unwrap())
}
}
#[derive(Debug, Serialize, Deserialize, Default)]
pub struct ImportExportFile {
#[serde(rename = "type")]
pub type_: String,
pub input: String,
}
impl std::fmt::Display for ImportExportFile {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
write!(f, "{}", serde_json::to_string(self).unwrap())
}
}
#[derive(Debug, Serialize, Deserialize, Default)]
pub struct JsonSchema {
#[serde(rename = "type")]
pub type_: Option<String>,
pub input: Option<serde_json::Value>,
}
impl std::fmt::Display for JsonSchema {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
write!(f, "{}", serde_json::to_string(self).unwrap())
}
}
#[derive(Debug, Serialize, Deserialize, Default)]
pub struct JsonStringified {
#[serde(rename = "type")]
pub type_: Option<String>,
pub input: Option<String>,
}
impl std::fmt::Display for JsonStringified {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
write!(f, "{}", serde_json::to_string(self).unwrap())
}
}