#[non_exhaustive]pub struct Identity {
pub id: Id,
pub name: String,
pub email: String,
pub reply_to: Option<Vec<EmailAddress>>,
pub bcc: Option<Vec<EmailAddress>>,
pub text_signature: String,
pub html_signature: String,
pub may_delete: bool,
pub extra: Map<String, Value>,
}Expand description
An RFC 8621 §6 Identity object.
Stores information about an email address or domain the user may send from.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: IdThe id of the Identity (immutable; server-set).
name: StringThe “From” name the client SHOULD use when creating a new Email
from this Identity. Defaults to "".
email: StringThe “From” email address the client MUST use (immutable).
reply_to: Option<Vec<EmailAddress>>The Reply-To value the client SHOULD set. null if not set.
bcc: Option<Vec<EmailAddress>>The Bcc value the client SHOULD set. null if not set.
text_signature: StringPlaintext signature. Defaults to "".
html_signature: StringHTML snippet signature. Defaults to "".
may_delete: boolWhether the user may delete this Identity (server-set).
extra: Map<String, Value>Catch-all for vendor / site / private extension fields not covered by the typed fields above. Preserves unknown fields across deserialize/serialize round-trip per workspace extras-preservation policy (see workspace AGENTS.md).