pub struct MotionClient { /* private fields */ }
Implementations§
Source§impl MotionClient
impl MotionClient
pub fn new(api_key: String) -> Result<Self>
pub async fn get_current_user(&self) -> Result<MotionUser>
pub async fn list_workspaces(&self) -> Result<Vec<MotionWorkspace>>
pub async fn create_task(&self, task: &MotionTask) -> Result<MotionTask>
pub async fn update_task( &self, task_id: &str, task: &MotionTask, ) -> Result<MotionTask>
pub async fn get_task(&self, task_id: &str) -> Result<MotionTask>
pub async fn list_completed_tasks( &self, workspace_id: &str, ) -> Result<Vec<MotionTask>>
pub async fn mark_task_completed(&self, task_id: &str) -> Result<MotionTask>
pub async fn delete_task(&self, task_id: &str) -> Result<()>
pub async fn list_labels(&self, workspace_id: &str) -> Result<Vec<MotionLabel>>
pub async fn create_label( &self, workspace_id: &str, name: &str, color_hex: Option<&str>, ) -> Result<MotionLabel>
pub async fn ensure_label_exists( &self, workspace_id: &str, label_name: &str, ) -> Result<MotionLabel>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MotionClient
impl !RefUnwindSafe for MotionClient
impl Send for MotionClient
impl Sync for MotionClient
impl Unpin for MotionClient
impl !UnwindSafe for MotionClient
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