pub struct Client<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Client<'a>
impl<'a> Client<'a>
pub async fn upload_web_file<P: AsRef<Path>>( &self, path: P, upload: Upload, ) -> Result<(String, String), UploadError>
pub async fn upload_web<'b, B: Into<Body>>( &self, body: B, upload: Upload, ) -> Result<(String, String), UploadError>
Source§impl<'a> Client<'a>
impl<'a> Client<'a>
pub fn builder() -> ClientBuilder<'a>
pub async fn get_hashsum(&self, file: &str) -> Result<String, GetHashsumError>
pub async fn delete_file(&self, file: &str) -> Result<(), DeleteFileError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Client<'a>
impl<'a> !RefUnwindSafe for Client<'a>
impl<'a> Send for Client<'a>
impl<'a> Sync for Client<'a>
impl<'a> Unpin for Client<'a>
impl<'a> !UnwindSafe for Client<'a>
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