[−][src]Struct efficacy::program::Efficacy
Methods
impl<'a> Efficacy<'a>
[src]
impl<'a> Efficacy<'a>
[src]
pub fn add_task(
&mut self,
description: String,
category: Option<String>,
information: Option<String>,
due: Option<DateTime<Utc>>
) -> Result<(), EfficacyError>
[src]
&mut self,
description: String,
category: Option<String>,
information: Option<String>,
due: Option<DateTime<Utc>>
) -> Result<(), EfficacyError>
pub fn complete_task(&mut self, id: usize) -> Result<(), EfficacyError>
[src]
pub fn edit_task(
&mut self,
id: usize,
new_description: Option<String>,
new_category: Option<String>,
new_information: Option<String>,
new_due: Option<DateTime<Utc>>
) -> Result<(), EfficacyError>
[src]
&mut self,
id: usize,
new_description: Option<String>,
new_category: Option<String>,
new_information: Option<String>,
new_due: Option<DateTime<Utc>>
) -> Result<(), EfficacyError>
pub fn delete_task(&mut self, id: usize) -> Result<Task, EfficacyError>
[src]
impl<'a> Efficacy<'a>
[src]
pub fn edit_category(
&mut self,
category: String,
new_category_title: String
) -> Result<(), EfficacyError>
[src]
&mut self,
category: String,
new_category_title: String
) -> Result<(), EfficacyError>
pub fn delete_category(
&mut self,
category: Option<String>
) -> Result<(), EfficacyError>
[src]
&mut self,
category: Option<String>
) -> Result<(), EfficacyError>
impl<'a> Efficacy<'a>
[src]
pub fn clean(&mut self) -> Result<(), EfficacyError>
[src]
impl<'a> Efficacy<'a>
[src]
pub fn new_context(
&mut self,
context_name: &String
) -> Result<(), EfficacyError>
[src]
&mut self,
context_name: &String
) -> Result<(), EfficacyError>
pub fn change_context(
&mut self,
context_name: &String
) -> Result<(), EfficacyError>
[src]
&mut self,
context_name: &String
) -> Result<(), EfficacyError>
pub fn context_exists(&self, context_name: &String) -> bool
[src]
pub fn delete_context(
&mut self,
context_name: &String
) -> Result<(), EfficacyError>
[src]
&mut self,
context_name: &String
) -> Result<(), EfficacyError>
impl<'a> Efficacy<'a>
[src]
pub fn list(&self) -> Result<String, EfficacyError>
[src]
pub fn list_contexts(&self) -> Result<String, EfficacyError>
[src]
pub fn list_task(&self, id: usize) -> Result<String, EfficacyError>
[src]
pub fn debug(&self) -> Result<(), EfficacyError>
[src]
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Efficacy<'a>
impl<'a> Send for Efficacy<'a>
impl<'a> Sync for Efficacy<'a>
impl<'a> Unpin for Efficacy<'a>
impl<'a> UnwindSafe for Efficacy<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,