pub struct ApiClient { /* private fields */ }Implementations§
Source§impl ApiClient
impl ApiClient
pub fn new(base: &str, http: Client, auth: Arc<AuthManager>) -> Result<Self>
pub async fn me(&self) -> Result<UserView>
pub async fn list_devices(&self) -> Result<Vec<DeviceView>>
pub async fn register_device( &self, name: &str, platform: &str, cli_version: &str, ) -> Result<Registered>
pub async fn list_projects(&self) -> Result<Vec<ProjectView>>
pub async fn add_project( &self, device_id: &str, name: &str, slug: &str, local_path: &str, ) -> Result<Registered>
pub async fn remove_project(&self, id: &str) -> Result<Value>
pub async fn list_worktrees( &self, project_id: &str, ) -> Result<Vec<WorktreeView>>
pub async fn put_worktree( &self, project_id: &str, worktree: &WorktreeEntry, ) -> Result<WorktreeView>
pub async fn remove_worktree( &self, project_id: &str, worktree_id: &str, ) -> Result<Value>
pub async fn list_tool_calls(&self, limit: usize) -> Result<Vec<ToolCallView>>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ApiClient
impl !UnwindSafe for ApiClient
impl Freeze for ApiClient
impl Send for ApiClient
impl Sync for ApiClient
impl Unpin for ApiClient
impl UnsafeUnpin for ApiClient
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.