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_tool_calls(&self, limit: usize) -> Result<Vec<ToolCallView>>
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