pub struct Bucket<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Bucket<'a>
impl<'a> Bucket<'a>
pub fn new(name: &'a str, client: &'a Client) -> Self
pub async fn put_object<S>(&self, key: S, object: &[u8]) -> Result<(), ObsError>
pub async fn copy_object<S1, S2>( &self, src: S1, dest: S2, ) -> Result<CopyObjectResult, ObsError>
pub async fn list_objects( &self, prefix: Option<&str>, marker: Option<&str>, max_keys: Option<usize>, ) -> Result<ListBucketResult, ObsError>
pub async fn location(&self) -> Result<Location, ObsError>
Auto Trait Implementations§
impl<'a> Freeze for Bucket<'a>
impl<'a> !RefUnwindSafe for Bucket<'a>
impl<'a> Send for Bucket<'a>
impl<'a> Sync for Bucket<'a>
impl<'a> Unpin for Bucket<'a>
impl<'a> !UnwindSafe for Bucket<'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