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 {
    ///A list of schema resource URIs.
    pub schemas: Option<Vec<String>>,
    ///The team member's SCIM ID.
    pub id: Option<String>,
    #[serde(rename = "userName")]
    ///The team member's SCIM username.
    pub user_name: Option<String>,
    ///Information about the Postman team member.
    pub name: Option<serde_json::Value>,
    #[serde(rename = "externalId")]
    ///The team member's external ID.
    pub external_id: Option<String>,
    ///If true, the team member is active.
    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")]
    ///The `file` type value.
    pub type_: String,
    ///A file containing a valid user's export .zip file.
    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")]
    ///The OpenAPI definition type.
    pub type_: Option<String>,
    ///An object that contains a valid JSON OpenAPI definition. For more information, read the [OpenAPI documentation](https://swagger.io/docs/specification/basic-structure/).
    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")]
    ///The OpenAPI definition type.
    pub type_: Option<String>,
    ///The stringified OpenAPI definition.
    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())
    }
}