pub struct Todo { /* private fields */ }
Expand description
Implementations§
Source§impl 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§
Source§impl Component for Todo
impl Component for Todo
Source§fn component_kind(&self) -> String
fn component_kind(&self) -> String
Source§fn components(&self) -> &[Other]
fn components(&self) -> &[Other]
Read-only access to properties
Source§fn multi_properties(&self) -> &BTreeMap<String, Vec<Property>>
fn multi_properties(&self) -> &BTreeMap<String, Vec<Property>>
Read-only access to multi_properties
Source§fn append_multi_property(&mut self, property: impl Into<Property>) -> &mut Self
fn append_multi_property(&mut self, property: impl Into<Property>) -> &mut Self
Adds a Property
of which there may be many
Source§fn append_component(&mut self, child: impl Into<Other>) -> &mut Self
fn append_component(&mut self, child: impl Into<Other>) -> &mut Self
Append a given
Component
Source§fn try_into_string(&self) -> Result<String, Error>
fn try_into_string(&self) -> Result<String, Error>
Serializes this component into
rfc5545
againSource§fn add_property(
&mut self,
key: impl Into<String>,
val: impl Into<String>,
) -> &mut Self
fn add_property( &mut self, key: impl Into<String>, val: impl Into<String>, ) -> &mut Self
Construct and append a
Property
Source§fn add_property_pre_alloc(&mut self, key: String, val: String) -> &mut Self
fn add_property_pre_alloc(&mut self, key: String, val: String) -> &mut Self
👎Deprecated
Construct and append a
Property
Source§fn 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
Source§fn get_summary(&self) -> Option<&str>
fn get_summary(&self) -> Option<&str>
Gets the summary
Source§fn description(&mut self, desc: &str) -> &mut Self
fn description(&mut self, desc: &str) -> &mut Self
Set the description
Source§fn get_description(&self) -> Option<&str>
fn get_description(&self) -> Option<&str>
Gets the description
Source§fn get_sequence(&self) -> Option<u32>
fn get_sequence(&self) -> Option<u32>
Gets the SEQUENCE
Source§fn last_modified(&mut self, dt: DateTime<Utc>) -> &mut Self
fn last_modified(&mut self, dt: DateTime<Utc>) -> &mut Self
Source§fn get_last_modified(&self) -> Option<DateTime<Utc>>
fn get_last_modified(&self) -> Option<DateTime<Utc>>
Gets the
LAST_MODIFIED
property.Source§impl EventLike for Todo
impl EventLike for Todo
Source§fn starts<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
fn starts<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
Source§fn ends<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
fn ends<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
Source§fn venue(&mut self, location: &str, venue_uid: &str) -> &mut Self
fn venue(&mut self, location: &str, venue_uid: &str) -> &mut Self
Set the LOCATION with a VVENUE UID
iCalender venue draft
Source§fn get_location(&self) -> Option<&str>
fn get_location(&self) -> Option<&str>
Gets the location
Source§impl From<Todo> for CalendarComponent
impl From<Todo> for CalendarComponent
impl Eq for Todo
impl StructuralPartialEq for Todo
Auto Trait Implementations§
impl Freeze for Todo
impl RefUnwindSafe for Todo
impl Send for Todo
impl Sync for Todo
impl Unpin for Todo
impl UnwindSafe for Todo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more