pub struct ObjectStoreClient { /* private fields */ }Implementations§
Source§impl ObjectStoreClient
impl ObjectStoreClient
pub fn new(base_url: impl Into<String>) -> Self
pub fn with_client(base_url: impl Into<String>, client: Client) -> Self
pub async fn create_bucket(&self, name: &str) -> Result<Bucket>
pub async fn list_buckets(&self) -> Result<Vec<Bucket>>
pub async fn delete_bucket(&self, name: &str) -> Result<()>
pub async fn put_object( &self, bucket: &str, key: &str, data: impl Into<Bytes>, content_type: Option<&str>, metadata: Option<HashMap<String, String>>, ) -> Result<ObjectMetadata>
pub async fn get_object(&self, bucket: &str, key: &str) -> Result<ObjectData>
pub async fn head_object( &self, bucket: &str, key: &str, ) -> Result<ObjectMetadata>
pub async fn delete_object(&self, bucket: &str, key: &str) -> Result<()>
pub async fn list_objects( &self, bucket: &str, prefix: Option<&str>, max_keys: Option<usize>, ) -> Result<Vec<ObjectMetadata>>
pub async fn get_public_url( &self, bucket: &str, key: &str, expiration_secs: Option<u64>, ) -> Result<PublicUrlResponse>
Auto Trait Implementations§
impl Freeze for ObjectStoreClient
impl !RefUnwindSafe for ObjectStoreClient
impl Send for ObjectStoreClient
impl Sync for ObjectStoreClient
impl Unpin for ObjectStoreClient
impl !UnwindSafe for ObjectStoreClient
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