A IcsEvent which leads to a calendar entry.
Methods
Creates a new IcsEvent.
Example
let event = exo::ics::IcsEvent::new();
event.summary = "This is a event";
Tries to create a new IcsEvent from another element. Right now only record is supported.
Example
let record = exo::get_record()?;
record.set_value("calendar_start", exo::DateTime::from_local_string("2023-11-15, 12:30:00")?);
record.set_value("calendar_end", exo::DateTime::from_local_string("2023-11-15, 13:30:00")?);
let event = exo::ics::IcsEvent::try_from(record)?;
assert_eq!(event.summary, record.get_value("name")?.get("en")?);
Protocols
let output = value.uid
Allows a get operation to work.
value.uid = input
Allows a set operation to work.
let output = value.summary
Allows a get operation to work.
value.summary = input
Allows a set operation to work.
let output = value.start
Allows a get operation to work.
value.start = input
Allows a set operation to work.
let output = value.end
Allows a get operation to work.
value.end = input
Allows a set operation to work.
let output = value.timestamp
Allows a get operation to work.
value.timestamp = input
Allows a set operation to work.
let output = value.description
Allows a get operation to work.
value.description = input
Allows a set operation to work.
let output = value.location
Allows a get operation to work.
value.location = input
Allows a set operation to work.
let output = value.organizer
Allows a get operation to work.
value.organizer = input
Allows a set operation to work.
let output = value.status
Allows a get operation to work.
value.status = input
Allows a set operation to work.
let output = value.priority
Allows a get operation to work.
value.priority = input
Allows a set operation to work.
if value == b { }
Allows for partial equality operations to work.
println("{:?}", value)
Allows the value to be debug printed.
println("{}", value)
Allows the value to be display printed.