pub struct TaskBoard { /* private fields */ }Implementations§
Source§impl TaskBoard
impl TaskBoard
pub fn open(path: impl AsRef<Path>, credits: Credits) -> Result<Self, Error>
pub fn revision(&self) -> Result<u64, Error>
pub fn categories(&self, page: BrowsePage) -> Result<Page<Category>, Error>
pub fn tasks(&self, page: BrowsePage) -> Result<Page<TaskSummary>, Error>
pub fn category( &self, category_id: &str, page: BrowsePage, ) -> Result<CategoryPage, Error>
pub fn task(&self, task_id: &str) -> Result<Task, Error>
pub fn create_category(&self, input: CreateCategory) -> Result<Category, Error>
pub fn remove_category(&self, category_id: &str) -> Result<(), Error>
pub fn create_task(&self, input: CreateTask) -> Result<Task, Error>
pub fn update_task(&self, input: UpdateTask) -> Result<UpdateOutcome, Error>
pub fn remove_task(&self, task_id: &str) -> Result<(), Error>
pub fn top_orphan(&self) -> Result<Option<Task>, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskBoard
impl RefUnwindSafe for TaskBoard
impl Send for TaskBoard
impl Sync for TaskBoard
impl Unpin for TaskBoard
impl UnsafeUnpin for TaskBoard
impl UnwindSafe for TaskBoard
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