Skip to main content

Module value

Module value 

Source
Expand description

§Property values

The decoded value of a property, one variant per iCalendar value kind.

IcalValue is the semantic counterpart of a content line’s raw value (the syntactic IcalValueNode). Most properties share a small set of kinds: a single text, a text list, a URI, a date/time, an integer.

The genuinely structured ones get a bespoke type in a submodule here (geo::IcalGeo, request_status::IcalRequestStatus). Anything the model does not decode falls back to Unknown, which keeps the raw components so it round-trips.

These types carry no wire name and no escaping: the name lives on IcalProp::name, the escaping and framing on the syntax side, so the decoded model stays free of crate::tree.

Modules§

binary
Binary value
boolean
Boolean value
cal_address
Calendar-address value
datetime
Date and time values
duration
Duration value
float
Float value
geo
Geographic-position value
integer
Integer value
period
Period value
recur
Recurrence-rule value
request_status
Request-status value
text
Text values
uri
URI value
utc_offset
UTC-offset value

Structs§

IcalUnknownValue
An undecoded property value: its unescaped components, in source order. The property name lives on IcalProp::name.
ParseIcalValueKindError
Parse iCalendar value kind error.

Enums§

IcalValue
A decoded property value: one known kind, or Unknown (raw) for anything the model does not decode.
IcalValueKind
The closed iCalendar value-type vocabulary (RFC 5545 3.3 and extensions), one fieldless variant per value kind. It is the discriminant of IcalValue (which also has an Unknown arm outside this closed set) and the currency of the prop spec’s allowed-values sets.