pub struct NotionClient { /* private fields */ }
Implementations§
Source§impl NotionClient
impl NotionClient
pub fn new(config: Config) -> Result<Self>
pub fn new_with_base_url(config: Config, base_url: String) -> Result<Self>
pub async fn add_task(&self, title: &str) -> Result<Task>
pub async fn list_tasks(&self) -> Result<Vec<Task>>
pub async fn update_task_status( &self, task_id: &str, status: TaskStatus, ) -> Result<Task>
pub async fn set_task_priority( &self, task_id: &str, priority: TaskPriority, ) -> Result<Task>
pub async fn set_task_due_date( &self, task_id: &str, due_date: &str, ) -> Result<Task>
pub async fn set_task_description( &self, task_id: &str, description: &str, ) -> Result<Task>
pub async fn delete_task(&self, task_id: &str) -> Result<()>
Auto Trait Implementations§
impl Freeze for NotionClient
impl !RefUnwindSafe for NotionClient
impl Send for NotionClient
impl Sync for NotionClient
impl Unpin for NotionClient
impl !UnwindSafe for NotionClient
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