Skip to main content

IcalParam

Enum IcalParam 

Source
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.

Fields

§name: Cow<'a, str>

The verbatim parameter name.

§values: Vec<Cow<'a, str>>

The parameter values, in source order.

Implementations§

Source§

impl IcalParam<'_>

Source

pub fn kind(&self) -> Option<IcalParamKind>

The closed IcalParamKind of this parameter, or None for Unknown (which is outside the vocabulary).

Source

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.

Source§

impl IcalParam<'_>

Source

pub fn encode(&self, escaper: Escaper) -> IcalParamNode<'static>

Available on crate feature parser only.

Encode the parameter into a raw parameter node for the given escaping mode, dispatching on its kind.

Trait Implementations§

Source§

impl<'a> Clone for IcalParam<'a>

Source§

fn clone(&self) -> IcalParam<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for IcalParam<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Eq for IcalParam<'a>

Source§

impl<'a> PartialEq for IcalParam<'a>

Source§

fn eq(&self, other: &IcalParam<'a>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<'a> StructuralPartialEq for IcalParam<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for IcalParam<'a>

§

impl<'a> RefUnwindSafe for IcalParam<'a>

§

impl<'a> Send for IcalParam<'a>

§

impl<'a> Sync for IcalParam<'a>

§

impl<'a> Unpin for IcalParam<'a>

§

impl<'a> UnsafeUnpin for IcalParam<'a>

§

impl<'a> UnwindSafe for IcalParam<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.