[−][src]Trait icalendar::Component
Implemented by everything that goes into a Calendar
Required methods
fn component_kind() -> &'static str
Returns kind of component.
Must be ALL CAPS
These are used in the BEGIN
and END
line of the component.
fn properties(&self) -> &BTreeMap<String, Property>
Allows access to the inner properties map.
fn multi_properties(&self) -> &Vec<Property>
Read-only access to multi_properties
fn append_property(&mut self, property: Property) -> &mut Self
Append a given Property
fn append_multi_property(&mut self, property: Property) -> &mut Self
Adds a Property
of which there may be many
Provided methods
fn fmt_write<W: Write>(&self, out: &mut W) -> Result<(), Error>
Writes Component
into a Writer
using std::fmt
.
fn to_string(&self) -> String
Guess what
fn add_property(&mut self, key: &str, val: &str) -> &mut Self
Construct and append a Property
fn add_multi_property(&mut self, key: &str, val: &str) -> &mut Self
Construct and append a Property
fn starts<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Self where
TZ::Offset: Display,
TZ::Offset: Display,
Set the DTSTART Property
fn ends<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Self where
TZ::Offset: Display,
TZ::Offset: Display,
Set the DTEND Property
fn start_date<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Self where
TZ::Offset: Display,
TZ::Offset: Display,
Set the DTSTART Property
, date only
fn end_date<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Self where
TZ::Offset: Display,
TZ::Offset: Display,
Set the DTEND Property
, date only
fn all_day<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Self where
TZ::Offset: Display,
TZ::Offset: Display,
Set the DTSTART Property
, date only
fn priority(&mut self, priority: u32) -> &mut Self
Defines the relative priority.
Ranges from 0 to 10, larger values will be truncated
fn print(&self) -> Result<(), Error>
Prints to stdout
fn summary(&mut self, desc: &str) -> &mut Self
Set the summary
fn description(&mut self, desc: &str) -> &mut Self
Set the description
fn location(&mut self, location: &str) -> &mut Self
Set the LOCATION 3.8.1.7. Location
fn uid(&mut self, uid: &str) -> &mut Self
Set the UID
fn class(&mut self, class: Class) -> &mut Self
Set the visibility class
Implementors
impl Component for Event
[src]
fn component_kind() -> &'static str
[src]
Tells you what kind of Component
this is
Might be VEVENT
, VTODO
, VALARM
etc
fn properties(&self) -> &BTreeMap<String, Property>
[src]
Read-only access to properties
fn multi_properties(&self) -> &Vec<Property>
[src]
Read-only access to multi_properties
fn append_property(&mut self, property: Property) -> &mut Self
[src]
Adds a Property
fn append_multi_property(&mut self, property: Property) -> &mut Self
[src]
Adds a Property
of which there may be many
fn fmt_write<W: Write>(&self, out: &mut W) -> Result<(), Error>
[src]
fn to_string(&self) -> String
[src]
fn add_property(&mut self, key: &str, val: &str) -> &mut Self
[src]
fn add_multi_property(&mut self, key: &str, val: &str) -> &mut Self
[src]
fn starts<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Self where
TZ::Offset: Display,
[src]
TZ::Offset: Display,
fn ends<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Self where
TZ::Offset: Display,
[src]
TZ::Offset: Display,
fn start_date<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Self where
TZ::Offset: Display,
[src]
TZ::Offset: Display,
fn end_date<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Self where
TZ::Offset: Display,
[src]
TZ::Offset: Display,
fn all_day<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Self where
TZ::Offset: Display,
[src]
TZ::Offset: Display,
fn priority(&mut self, priority: u32) -> &mut Self
[src]
fn print(&self) -> Result<(), Error>
[src]
fn summary(&mut self, desc: &str) -> &mut Self
[src]
fn description(&mut self, desc: &str) -> &mut Self
[src]
fn location(&mut self, location: &str) -> &mut Self
[src]
fn uid(&mut self, uid: &str) -> &mut Self
[src]
fn class(&mut self, class: Class) -> &mut Self
[src]
impl Component for Todo
[src]
fn component_kind() -> &'static str
[src]
Tells you what kind of Component
this is
Might be VEVENT
, VTODO
, VALARM
etc
fn properties(&self) -> &BTreeMap<String, Property>
[src]
Read-only access to properties
fn multi_properties(&self) -> &Vec<Property>
[src]
Read-only access to multi_properties
fn append_property(&mut self, property: Property) -> &mut Self
[src]
Adds a Property
fn append_multi_property(&mut self, property: Property) -> &mut Self
[src]
Adds a Property
of which there may be many
fn fmt_write<W: Write>(&self, out: &mut W) -> Result<(), Error>
[src]
fn to_string(&self) -> String
[src]
fn add_property(&mut self, key: &str, val: &str) -> &mut Self
[src]
fn add_multi_property(&mut self, key: &str, val: &str) -> &mut Self
[src]
fn starts<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Self where
TZ::Offset: Display,
[src]
TZ::Offset: Display,
fn ends<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Self where
TZ::Offset: Display,
[src]
TZ::Offset: Display,
fn start_date<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Self where
TZ::Offset: Display,
[src]
TZ::Offset: Display,
fn end_date<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Self where
TZ::Offset: Display,
[src]
TZ::Offset: Display,
fn all_day<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Self where
TZ::Offset: Display,
[src]
TZ::Offset: Display,