#[non_exhaustive]pub struct ParticipantIdentity {
pub id: Option<Id>,
pub name: String,
pub calendar_address: String,
pub is_default: bool,
pub extra: Map<String, Value>,
}Expand description
A JMAP ParticipantIdentity object (draft-ietf-jmap-calendars-33 §3).
Represents a URI (typically a mailto: address) that identifies the
authenticated user for iTIP scheduling purposes within a calendar account.
The set is specific to the authenticated user as well as the account:
different users with access to one account may see different
identities, and a different default (§3).
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: Option<Id>Server-assigned immutable identifier.
Option<Id> with skip_serializing_if so /set create payloads
constructed by a typed caller do NOT emit a client-supplied id
on the wire. Per RFC 8620 §5.3, the id property MUST NOT be set
in the create object — the server assigns it. Matches the
in-crate sibling CalendarEvent.id
(crate-jmap-calendars-types/src/event.rs:43-44).
name: StringDisplay name to use when adding this identity as a participant
(default "").
calendar_address: StringThe URI that represents this participant for iTIP scheduling
(e.g. "mailto:user@example.com").
is_default: boolServer-set; true for at most one of the identities the user can
see in the account (§3).
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).
Trait Implementations§
Source§impl Clone for ParticipantIdentity
impl Clone for ParticipantIdentity
Source§impl Debug for ParticipantIdentity
impl Debug for ParticipantIdentity
Source§impl<'de> Deserialize<'de> for ParticipantIdentity
impl<'de> Deserialize<'de> for ParticipantIdentity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ParticipantIdentity
impl GetObject for ParticipantIdentity
Source§impl JmapObject for ParticipantIdentity
impl JmapObject for ParticipantIdentity
Source§impl PartialEq for ParticipantIdentity
impl PartialEq for ParticipantIdentity
Source§impl Serialize for ParticipantIdentity
impl Serialize for ParticipantIdentity
Source§impl SetObject for ParticipantIdentity
draft-ietf-jmap-calendars-33 §3 (lines 627, 638): id is “(immutable;
server-set)”, isDefault is “(server-set)”.
impl SetObject for ParticipantIdentity
draft-ietf-jmap-calendars-33 §3 (lines 627, 638): id is “(immutable;
server-set)”, isDefault is “(server-set)”.
Source§const SERVER_SET: &'static [&'static str]
const SERVER_SET: &'static [&'static str]
/set method text never accepts from a
client, on create or update, is server-set too. Read moreSource§const CLIENT_SETTABLE: &'static [&'static str]
const CLIENT_SETTABLE: &'static [&'static str]
SERVER_SET: the ones a
client may set through /set. Read moreSource§const IMMUTABLE: &'static [&'static str]
const IMMUTABLE: &'static [&'static str]
CLIENT_SETTABLE properties the spec marks “immutable”: “The
value MUST NOT change after the object is created.” (RFC 8620 §1.1).
A property the /set method text accepts on create but not on update
is immutable too. Read more