pub enum IcalParam<'a> {
Show 34 variants
AltRep(Cow<'a, str>),
Cn(Cow<'a, str>),
CuType(Cow<'a, str>),
DelegatedFrom(Vec<Cow<'a, str>>),
DelegatedTo(Vec<Cow<'a, str>>),
Dir(Cow<'a, str>),
Encoding(Cow<'a, str>),
FmtType(Cow<'a, str>),
FbType(Cow<'a, str>),
Language(Cow<'a, str>),
Member(Vec<Cow<'a, str>>),
PartStat(Cow<'a, str>),
Range(Cow<'a, str>),
Related(Cow<'a, str>),
RelType(Cow<'a, str>),
Role(Cow<'a, str>),
Rsvp(Cow<'a, str>),
SentBy(Cow<'a, str>),
TzId(Cow<'a, str>),
Value(Cow<'a, str>),
Display(Cow<'a, str>),
Email(Cow<'a, str>),
Feature(Vec<Cow<'a, str>>),
Label(Cow<'a, str>),
Order(Cow<'a, str>),
Schema(Cow<'a, str>),
Derived(Cow<'a, str>),
ScheduleAgent(Cow<'a, str>),
ScheduleForceSend(Cow<'a, str>),
ScheduleStatus(Cow<'a, str>),
LinkRel(Cow<'a, str>),
Gap(Cow<'a, str>),
Charset(Cow<'a, str>),
Unknown {
name: Cow<'a, str>,
values: Vec<Cow<'a, str>>,
},
}Expand description
A decoded parameter: one known kind, or Unknown for anything unmodelled.
The list-valued parameters (DELEGATED-FROM, DELEGATED-TO, MEMBER,
FEATURE) carry a vector; the rest carry a single value.
Variants§
AltRep(Cow<'a, str>)
ALTREP: an alternate text representation URI.
Cn(Cow<'a, str>)
CN: the common name of a calendar user.
CuType(Cow<'a, str>)
CUTYPE: the calendar user type (e.g. INDIVIDUAL, ROOM).
DelegatedFrom(Vec<Cow<'a, str>>)
DELEGATED-FROM: the calendar users this attendee is delegated from.
DelegatedTo(Vec<Cow<'a, str>>)
DELEGATED-TO: the calendar users this attendee is delegated to.
Dir(Cow<'a, str>)
DIR: a directory-entry reference URI.
Encoding(Cow<'a, str>)
ENCODING: the inline encoding of the value (8BIT, BASE64).
FmtType(Cow<'a, str>)
FMTTYPE: the media type of a referenced object.
FbType(Cow<'a, str>)
FBTYPE: the free/busy time type (FREE, BUSY, …).
Language(Cow<'a, str>)
LANGUAGE: the language of the value (RFC 5646 tag).
Member(Vec<Cow<'a, str>>)
MEMBER: the groups this attendee is a member of.
PartStat(Cow<'a, str>)
PARTSTAT: the participation status (ACCEPTED, DECLINED, …).
Range(Cow<'a, str>)
RANGE: the recurrence-instance range (THISANDFUTURE).
Related(Cow<'a, str>)
RELATED: the alarm trigger relationship (START, END).
RelType(Cow<'a, str>)
RELTYPE: the relationship type (PARENT, CHILD, SIBLING).
Role(Cow<'a, str>)
ROLE: the participation role (CHAIR, REQ-PARTICIPANT, …).
Rsvp(Cow<'a, str>)
RSVP: whether an RSVP is expected (TRUE, FALSE).
SentBy(Cow<'a, str>)
SENT-BY: the calendar user acting on behalf of another.
TzId(Cow<'a, str>)
TZID: the referenced time-zone identifier.
Value(Cow<'a, str>)
VALUE: the value type the property value is to be read as.
Display(Cow<'a, str>)
DISPLAY: the image display type (BADGE, GRAPHIC, …).
Email(Cow<'a, str>)
EMAIL: the email address of a calendar user.
Feature(Vec<Cow<'a, str>>)
FEATURE: the conference feature set (AUDIO, VIDEO, …).
Label(Cow<'a, str>)
LABEL: a human-readable label.
Order(Cow<'a, str>)
ORDER: the ordering among like properties (a positive integer).
Schema(Cow<'a, str>)
SCHEMA: the URI identifying structured-data content.
Derived(Cow<'a, str>)
DERIVED: whether the property value is derived (TRUE, FALSE).
ScheduleAgent(Cow<'a, str>)
SCHEDULE-AGENT: who performs scheduling for an attendee.
ScheduleForceSend(Cow<'a, str>)
SCHEDULE-FORCE-SEND: a request to resend a scheduling message.
ScheduleStatus(Cow<'a, str>)
SCHEDULE-STATUS: the status of a scheduling operation.
LinkRel(Cow<'a, str>)
LINKREL: the relation type of a LINK.
Gap(Cow<'a, str>)
GAP: the lag or lead between two related components.
Charset(Cow<'a, str>)
CHARSET: the character set of the value (vCalendar 1.0).
Unknown
Any parameter the model does not decode: its name and its values.
Implementations§
Source§impl IcalParam<'_>
impl IcalParam<'_>
Sourcepub fn kind(&self) -> Option<IcalParamKind>
pub fn kind(&self) -> Option<IcalParamKind>
The closed IcalParamKind of this parameter, or None for
Unknown (which is outside the vocabulary).
Sourcepub fn into_owned(self) -> IcalParam<'static>
pub fn into_owned(self) -> IcalParam<'static>
The same parameter with every borrow replaced by an allocation, so it
outlives the bytes it was decoded from. See
IcalValue::into_owned.