pub enum Rule {
Show 21 variants
event,
begin,
dtstart,
dtend,
dtstamp,
uid,
created,
last_modified,
sequence,
status,
summary,
transp,
end,
status_value,
transp_value,
email_address,
datetime,
string_value,
digit,
letter_or_digit,
new_line,
}Variants§
event
Defines the structure of a full calendar event, with all required fields in a specific order.
begin
Matches the start of an event with the text “BEGIN”.
dtstart
Specifies the start date and time of the event, formatted as “DTSTART:
dtend
Specifies the end date and time of the event, formatted as “DTEND:
dtstamp
The timestamp indicating when the event was created or last modified, formatted as “DTSTAMP:
uid
Unique identifier for the event, structured as “UID:<email_address>”.
created
The date and time when the event was initially created, formatted as “CREATED:
last_modified
The date and time when the event was last modified, formatted as “LAST-MODIFIED:
sequence
A sequence number tracking event updates, represented as “SEQUENCE:<digit(s)>”.
status
The event’s status, such as “confirmed,” “tentative,” or “canceled”, formatted as “STATUS:<status_value>”.
summary
A brief title or description of the event, formatted as “SUMMARY:<string_value>”.
transp
Indicates the event’s transparency (visibility), formatted as “TRANSP:<transp_value>”.
end
Marks the end of an event with the text “END”.
status_value
Specifies valid status options for an event: “CONFIRMED,” “TENTATIVE,” or “CANCELLED”.
transp_value
Specifies transparency options, “TRANSP” or “OPAQUE,” to indicate if the event is marked as busy or free.
email_address
Defines the format of a valid email address for uid.
datetime
Matches a date and time in the format YYYYMMDDTHHMMSSZ.
string_value
A general string without newline characters, allowing specific punctuation.
digit
Matches a single numeric digit (0-9).
letter_or_digit
Matches any letter (uppercase or lowercase) or digit.
new_line
Matches a newline character to separate fields within an event.