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 get_percent_complete(&self) -> Option<u8>
pub fn get_percent_complete(&self) -> Option<u8>
Gets the PERCENT-COMPLETE
property.
Ranges between 0 - 100.
sourcepub fn due<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
pub fn due<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
Set the DUE
property
See CalendarDateTime
for info how are different chrono
types converted automatically.
sourcepub fn get_due(&self) -> Option<DatePerhapsTime>
pub fn get_due(&self) -> Option<DatePerhapsTime>
Gets the DUE
property
sourcepub fn completed(&mut self, dt: DateTime<Utc>) -> &mut Self
pub fn completed(&mut self, dt: DateTime<Utc>) -> &mut Self
Set the COMPLETED
property
Per RFC 5545, Section 3.8.2.1, this must be a date-time in UTC format.
sourcepub fn get_completed(&self) -> Option<DateTime<Utc>>
pub fn get_completed(&self) -> Option<DateTime<Utc>>
Gets the COMPLETED
property
Per RFC 5545, Section 3.8.2.1, this must be a date-time in UTC format.
sourcepub fn status(&mut self, status: TodoStatus) -> &mut Self
pub fn status(&mut self, status: TodoStatus) -> &mut Self
Defines the overall status or confirmation
sourcepub fn get_status(&self) -> Option<TodoStatus>
pub fn get_status(&self) -> Option<TodoStatus>
Gets the overall status.
Trait Implementations
sourceimpl Component for Todo
impl Component for Todo
sourcefn component_kind(&self) -> String
fn component_kind(&self) -> String
sourcefn properties(&self) -> &BTreeMap<String, Property>
fn properties(&self) -> &BTreeMap<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 property_value(&self, key: &str) -> Option<&str>
fn property_value(&self, key: &str) -> Option<&str>
Gets the value of a property.
sourcefn try_into_string(&self) -> Result<String, Error>
fn try_into_string(&self) -> Result<String, Error>
Serializes this component into rfc5545
again
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 timestamp<T: Into<CalendarDateTime>>(&mut self, dt: T) -> &mut Self
fn timestamp<T: Into<CalendarDateTime>>(&mut self, dt: T) -> &mut Self
sourcefn get_timestamp(&self) -> Option<CalendarDateTime>
fn get_timestamp(&self) -> Option<CalendarDateTime>
Gets the DTSTAMP
property.
sourcefn starts<T: Into<CalendarDateTime>>(&mut self, dt: T) -> &mut Self
fn starts<T: Into<CalendarDateTime>>(&mut self, dt: T) -> &mut Self
sourcefn ends<T: Into<CalendarDateTime>>(&mut self, dt: T) -> &mut Self
fn ends<T: Into<CalendarDateTime>>(&mut self, dt: T) -> &mut Self
sourcefn start_date<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Self where
TZ::Offset: Display,
fn start_date<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Self where
TZ::Offset: Display,
sourcefn get_priority(&self) -> Option<u32>
fn get_priority(&self) -> Option<u32>
Gets the relative priority. Read more
sourcefn get_summary(&self) -> Option<&str>
fn get_summary(&self) -> Option<&str>
Gets the summary
sourcefn description(&mut self, desc: &str) -> &mut Self
fn description(&mut self, desc: &str) -> &mut Self
Set the description
sourcefn get_description(&self) -> Option<&str>
fn get_description(&self) -> Option<&str>
Gets the description
sourcefn location(&mut self, location: &str) -> &mut Self
fn location(&mut self, location: &str) -> &mut Self
Set the LOCATION 3.8.1.7. Location Read more
sourcefn get_location(&self) -> Option<&str>
fn get_location(&self) -> Option<&str>
Gets the location
sourceimpl From<Todo> for CalendarComponent
impl From<Todo> for CalendarComponent
impl Eq for Todo
impl StructuralEq for Todo
impl StructuralPartialEq for Todo
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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