pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub fn new(tm: Arc<TokenManager>, endpoint: &str) -> Self
pub fn list_buckets(&self, instance_id: &str) -> Result<Vec<Bucket>, Error>
pub fn list_objects( &self, bucket: &str, prefix: Option<String>, start_after: Option<String>, ) -> ObjectIterator<'_> ⓘ
pub fn get_object_at_range( &self, bucket: &str, key: &str, start: u64, end: Option<u64>, ) -> Result<Box<dyn Read>, Error>
pub fn get_object( &self, bucket: &str, key: &str, ) -> Result<Box<dyn Read>, Error>
pub fn put_object<B: Into<Body>>( &self, bucket: &str, key: &str, body: B, ) -> Result<(), Error>
pub fn delete_object(&self, bucket: &str, key: &str) -> Result<(), Error>
Source§impl Client
impl Client
pub fn create_multipart_upload( &self, bucket: &str, key: &str, ) -> Result<UploadId, Error>
pub fn upload_part<T: Into<Body>>( &self, bucket: &str, key: &str, upload_id: &str, sequence_number: usize, chunk: T, ) -> Result<Part, Error>
pub fn complete_multipart_upload( &self, bucket: &str, key: &str, upload_id: &str, cmpu: CompleteMultipartUpload, ) -> Result<(), Error>
pub fn abort_multipart_upload( &self, bucket: &str, key: &str, upload_id: &str, ) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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