pub struct Todo { /* private fields */ }
Expand description
Implementations
sourceimpl Todo
impl Todo
sourcepub fn percent_complete(&mut self, percent: u8) -> &mut Self
pub fn percent_complete(&mut self, percent: u8) -> &mut Self
Set the PERCENT-COMPLETE Property
Ranges between 0 - 100
sourcepub fn due<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
pub fn due<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
Set the COMPLETED Property
, date only
sourcepub fn completed<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
pub fn completed<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
Set the COMPLETED Property
, date only
sourcepub fn status(&mut self, status: TodoStatus) -> &mut Self
pub fn status(&mut self, status: TodoStatus) -> &mut Self
Defines the overall status or confirmation
Trait Implementations
sourceimpl Component for Todo
impl Component for Todo
sourcefn component_kind() -> &'static str
fn component_kind() -> &'static str
Tells you what kind of Component
this is
Might be VEVENT
, VTODO
, VALARM
etc
sourcefn properties(&self) -> &HashMap<String, Property>
fn properties(&self) -> &HashMap<String, Property>
Read-only access to properties
sourcefn multi_properties(&self) -> &Vec<Property>
fn multi_properties(&self) -> &Vec<Property>
Read-only access to multi_properties
sourcefn append_property(&mut self, property: Property) -> &mut Self
fn append_property(&mut self, property: Property) -> &mut Self
Adds a Property
sourcefn append_multi_property(&mut self, property: Property) -> &mut Self
fn append_multi_property(&mut self, property: Property) -> &mut Self
Adds a Property
of which there may be many
sourcefn fmt_write<W: Write>(&self, out: &mut W) -> Result<(), Error>
fn fmt_write<W: Write>(&self, out: &mut W) -> Result<(), Error>
Writes
Component
into a Writer
using std::fmt
.sourcefn add_property(&mut self, key: &str, val: &str) -> &mut Self
fn add_property(&mut self, key: &str, val: &str) -> &mut Self
Construct and append a
Property
sourcefn add_multi_property(&mut self, key: &str, val: &str) -> &mut Self
fn add_multi_property(&mut self, key: &str, val: &str) -> &mut Self
Construct and append a
Property
sourcefn starts<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
fn starts<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
Set the DTSTART
Property
sourcefn ends<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
fn ends<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
Set the DTEND
Property
sourcefn start_date<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
fn start_date<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
Set the DTSTART
Property
, date onlysourcefn end_date<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
fn end_date<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
Set the DTEND
Property
, date onlysourcefn all_day<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
fn all_day<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
Set the DTSTART
Property
, date onlysourcefn description(&mut self, desc: &str) -> &mut Self
fn description(&mut self, desc: &str) -> &mut Self
Set the description
Auto Trait Implementations
impl RefUnwindSafe for Todo
impl Send for Todo
impl Sync for Todo
impl Unpin for Todo
impl UnwindSafe for Todo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more