Trait icalendar::Component [] [src]

pub trait Component {
    fn component_kind() -> &'static str;
    fn properties(&self) -> &HashMap<String, Property>;
    fn append_property(&mut self, property: Property) -> &mut Self;

    fn fmt_write<W: Write>(&self, out: &mut W) -> Result<(), Error> { ... }
    fn to_string(&self) -> String { ... }
    fn add_property(&mut self, key: &str, val: &str) -> &mut Self { ... }
    fn starts<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Self where TZ::Offset: Display { ... }
    fn ends<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Self where TZ::Offset: Display { ... }
    fn start_date<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Self where TZ::Offset: Display { ... }
    fn end_date<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Self where TZ::Offset: Display { ... }
    fn all_day<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Self where TZ::Offset: Display { ... }
    fn print(&self) -> Result<(), Error> { ... }
    fn summary(&mut self, desc: &str) -> &mut Self { ... }
    fn description(&mut self, desc: &str) -> &mut Self { ... }
    fn location(&mut self, location: &str) -> &mut Self { ... }
    fn class(&mut self, class: Class) -> &mut Self { ... }
}

Implemented by everything that goes into a Calendar

Required Methods

Returns kind of component.

Must be ALL CAPS These are used in the BEGIN and END line of the component.

Allows access to the inner properties HashMap.

Append a given Property

Provided Methods

Writes Component into a Writer using std::fmt.

Guess what

Construct and append a Property

Set the DTSTART Property

Set the DTEND Property

Set the DTSTART Property, date only

Set the DTEND Property, date only

Set the DTSTART Property, date only

Prints to stdout

Set the summary

Set the description

Set the LOCATION 3.8.1.7. Location

Set the visibility class

Implementors