scim_server/resource/
types.rs

1//! Domain-specific types for SCIM resources.
2//!
3//! This module contains specialized data structures that represent
4//! specific domain concepts used in SCIM resources.
5
6use serde::{Deserialize, Serialize};
7
8/// Email address representation extracted from User resources.
9#[derive(Debug, Clone, Serialize, Deserialize)]
10pub struct EmailAddress {
11    pub value: String,
12    #[serde(rename = "type")]
13    pub email_type: Option<String>,
14    pub primary: Option<bool>,
15    pub display: Option<String>,
16}