pub struct DatalabClient { /* private fields */ }Implementations§
Source§impl DatalabClient
impl DatalabClient
pub fn new(timeout_secs: Option<u64>) -> Result<Self>
pub async fn get(&self, path: &str) -> Result<Value>
pub async fn delete(&self, path: &str) -> Result<Value>
pub async fn post_json(&self, path: &str, body: &Value) -> Result<Value>
pub async fn post_form(&self, path: &str, form: Form) -> Result<Value>
pub async fn submit_and_poll( &self, path: &str, form: Form, progress: &Progress, ) -> Result<Value>
pub async fn submit_json_and_poll( &self, path: &str, body: &Value, progress: &Progress, ) -> Result<Value>
pub async fn upload_file_to_presigned_url( &self, upload_url: &str, file_path: &PathBuf, content_type: &str, progress: &Progress, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for DatalabClient
impl !RefUnwindSafe for DatalabClient
impl Send for DatalabClient
impl Sync for DatalabClient
impl Unpin for DatalabClient
impl UnsafeUnpin for DatalabClient
impl !UnwindSafe for DatalabClient
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