use alloc::{string::String, vec::Vec};
use serde::{Deserialize, Serialize};
use crate::rfc8621::email::JmapEmailAddress;
pub mod get;
pub mod set;
#[derive(Clone, Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
#[serde(rename_all = "camelCase")]
pub struct JmapIdentity {
pub id: String,
pub name: String,
pub email: String,
pub reply_to: Option<Vec<JmapEmailAddress>>,
pub bcc: Option<Vec<JmapEmailAddress>>,
pub text_signature: Option<String>,
pub html_signature: Option<String>,
#[serde(default)]
pub may_delete: bool,
}