[][src]Struct efficacy::program::Efficacy

pub struct Efficacy<'a> { /* fields omitted */ }

Methods

impl<'a> Efficacy<'a>[src]

pub fn init(config: &'a Settings) -> Result<Efficacy<'a>, EfficacyError>[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]

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]

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]

pub fn delete_category(
    &mut self,
    category: Option<String>
) -> Result<(), EfficacyError>
[src]

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]

pub fn change_context(
    &mut self,
    context_name: &String
) -> Result<(), EfficacyError>
[src]

pub fn context_exists(&self, context_name: &String) -> bool[src]

pub fn delete_context(
    &mut self,
    context_name: &String
) -> Result<(), EfficacyError>
[src]

impl<'a> Efficacy<'a>[src]

Trait Implementations

impl<'a> Debug for Efficacy<'a>[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.