Trait icalendar::Component

source ·
pub trait Component {
Show 33 methods fn component_kind(&self) -> String; fn properties(&self) -> &BTreeMap<String, Property>; fn components(&self) -> &[Other]; fn multi_properties(&self) -> &Vec<Property>; fn append_property(&mut self, property: impl Into<Property>) -> &mut Self; fn append_component(&mut self, child: impl Into<Other>) -> &mut Self; fn append_multi_property(
        &mut self,
        property: impl Into<Property>
    ) -> &mut Self; fn property_value(&self, key: &str) -> Option<&str> { ... } fn fmt_write<W: Write>(&self, out: &mut W) -> Result<(), Error> { ... } fn to_string(&self) -> String { ... } fn try_into_string(&self) -> Result<String, Error> { ... } fn add_property(&mut self, key: &str, val: &str) -> &mut Self { ... } fn add_property_pre_alloc(&mut self, key: String, val: String) -> &mut Self { ... } fn add_multi_property(&mut self, key: &str, val: &str) -> &mut Self { ... } fn timestamp(&mut self, dt: DateTime<Utc>) -> &mut Self { ... } fn get_timestamp(&self) -> Option<DateTime<Utc>> { ... } fn get_start(&self) -> Option<DatePerhapsTime> { ... } fn get_end(&self) -> Option<DatePerhapsTime> { ... } fn priority(&mut self, priority: u32) -> &mut Self { ... } fn get_priority(&self) -> Option<u32> { ... } fn print(&self) -> Result<(), Error> { ... } fn summary(&mut self, desc: &str) -> &mut Self { ... } fn get_summary(&self) -> Option<&str> { ... } fn description(&mut self, desc: &str) -> &mut Self { ... } fn get_description(&self) -> Option<&str> { ... } fn uid(&mut self, uid: &str) -> &mut Self { ... } fn get_uid(&self) -> Option<&str> { ... } fn sequence(&mut self, sequence: u32) -> &mut Self { ... } fn get_sequence(&self) -> Option<u32> { ... } fn class(&mut self, class: Class) -> &mut Self { ... } fn get_class(&self) -> Option<Class> { ... } fn url(&mut self, url: &str) -> &mut Self { ... } fn get_url(&self) -> Option<&str> { ... }
}
Expand description

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 map.

Allows access to the inner’s child components.

Read-only access to multi_properties

Append a given Property

Append a given Component

Adds a Property of which there may be many

Provided Methods§

Gets the value of a property.

Writes Component using std::fmt.

Serializes this component into rfc5545 again

Panic

this can panic if std::fmt::write returns an Error use Component::try_into_string() if you don’t like panicking

Serializes this component into rfc5545 again

Construct and append a Property

Construct and append a Property

Construct and append a Property

Set the DTSTAMP Property

This must be a UTC date-time value.

Gets the DTSTAMP property.

Gets the DTSTART Property

Gets the DTEND Property

Defines the relative priority.

Ranges from 0 to 10, larger values will be truncated

Gets the relative priority.

Ranges from 0 to 10.

Prints to stdout

Set the summary

Gets the summary

Set the description

Gets the description

Set the UID

Gets the UID

Set the sequence

Gets the SEQUENCE

Set the visibility class

Gets the visibility class

Sets the URL.

Gets the URL.

Implementors§