[−][src]Struct icalendar::Todo
Methods
impl Todo
[src]
pub fn new() -> Self
[src]
Creates a new Todo.
pub fn done(&mut self) -> Self
[src]
End of builder pattern. copies over everything
pub fn percent_complete(&mut self, percent: u8) -> &mut Self
[src]
Set the PERCENT-COMPLETE Property
Ranges between 0 - 100
pub fn due<TZ: TimeZone>(&mut self, dt: &DateTime<TZ>) -> &mut Self where
TZ::Offset: Display,
[src]
TZ::Offset: Display,
Set the COMPLETED Property
, date only
pub fn completed<TZ: TimeZone>(&mut self, dt: &DateTime<TZ>) -> &mut Self where
TZ::Offset: Display,
[src]
TZ::Offset: Display,
Set the COMPLETED Property
, date only
pub fn status(&mut self, status: TodoStatus) -> &mut Self
[src]
Defines the overall status or confirmation
Trait Implementations
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]
Writes Component
into a Writer
using std::fmt
.
fn to_string(&self) -> String
[src]
Guess what
fn add_property(&mut self, key: &str, val: &str) -> &mut Self
[src]
Construct and append a Property
fn add_multi_property(&mut self, key: &str, val: &str) -> &mut Self
[src]
Construct and append a Property
fn starts<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Self where
TZ::Offset: Display,
[src]
TZ::Offset: Display,
Set the DTSTART Property
fn ends<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Self where
TZ::Offset: Display,
[src]
TZ::Offset: Display,
Set the DTEND Property
fn start_date<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Self where
TZ::Offset: Display,
[src]
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,
[src]
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,
[src]
TZ::Offset: Display,
Set the DTSTART Property
, date only
fn priority(&mut self, priority: u32) -> &mut Self
[src]
Defines the relative priority. Read more
fn print(&self) -> Result<(), Error>
[src]
Prints to stdout
fn summary(&mut self, desc: &str) -> &mut Self
[src]
Set the summary
fn description(&mut self, desc: &str) -> &mut Self
[src]
Set the description
fn location(&mut self, location: &str) -> &mut Self
[src]
Set the LOCATION 3.8.1.7. Location Read more
fn uid(&mut self, uid: &str) -> &mut Self
[src]
Set the UID
fn class(&mut self, class: Class) -> &mut Self
[src]
Set the visibility class
impl Default for Todo
[src]
impl Debug for Todo
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,