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())
}
}