Struct icalendar::Todo
[−]
[src]
pub struct Todo { /* fields omitted */ }
Methods
impl Todo
[src]
fn new() -> Self
Creates a new Todo.
fn done(&mut self) -> Self
End of builder pattern. copies over everything
fn percent_complete(&mut self, percent: u8) -> &mut Self
Set the PERCENT-COMPLETE Property
Ranges between 0 - 100
fn due<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Self where
TZ::Offset: Display,
TZ::Offset: Display,
Set the COMPLETED Property
, date only
fn completed<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Self where
TZ::Offset: Display,
TZ::Offset: Display,
Set the COMPLETED Property
, date only
fn status(&mut self, status: TodoStatus) -> &mut Self
Defines the overall status or confirmation
Trait Implementations
impl Debug for Todo
[src]
impl Default for Todo
[src]
impl Component for Todo
[src]
fn component_kind() -> &'static str
Tells you what kind of Component
this is
Might be VEVENT
, VTODO
, VALARM
etc
fn properties(&self) -> &HashMap<String, Property>
Read-only access to properties
fn multi_properties(&self) -> &Vec<Property>
Read-only access to multi_properties
fn append_property(&mut self, property: Property) -> &mut Self
Adds a Property
fn append_multi_property(&mut self, property: Property) -> &mut Self
Adds a Property
of which there may be many
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. Read more
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 Read more
fn class(&mut self, class: Class) -> &mut Self
Set the visibility class
impl Into<CalendarElement> for Todo
[src]
fn into(self) -> CalendarElement
Performs the conversion.