pub struct Store { /* private fields */ }Expand description
PostgreSQL-backed storage. Also exported as PostgresBackend.
Implementations§
Trait Implementations§
Source§impl StorageBackend for Store
impl StorageBackend for Store
async fn create_bucket(&self, name: &str) -> Result<BucketInfo, Post3Error>
async fn head_bucket( &self, name: &str, ) -> Result<Option<BucketInfo>, Post3Error>
async fn delete_bucket(&self, name: &str) -> Result<(), Post3Error>
async fn list_buckets(&self) -> Result<Vec<BucketInfo>, Post3Error>
async fn put_object( &self, bucket: &str, key: &str, content_type: Option<&str>, metadata: HashMap<String, String>, body: Bytes, ) -> Result<PutObjectResult, Post3Error>
async fn get_object( &self, bucket: &str, key: &str, ) -> Result<GetObjectResult, Post3Error>
async fn head_object( &self, bucket: &str, key: &str, ) -> Result<Option<HeadObjectResult>, Post3Error>
async fn delete_object(&self, bucket: &str, key: &str) -> Result<(), Post3Error>
async fn list_objects_v2( &self, bucket: &str, prefix: Option<&str>, continuation_token: Option<&str>, max_keys: Option<i64>, delimiter: Option<&str>, ) -> Result<ListObjectsResult, Post3Error>
async fn create_multipart_upload( &self, bucket: &str, key: &str, content_type: Option<&str>, metadata: HashMap<String, String>, ) -> Result<CreateMultipartUploadResult, Post3Error>
async fn upload_part( &self, bucket: &str, key: &str, upload_id: &str, part_number: i32, body: Bytes, ) -> Result<UploadPartResult, Post3Error>
async fn complete_multipart_upload( &self, bucket: &str, key: &str, upload_id: &str, part_etags: Vec<(i32, String)>, ) -> Result<CompleteMultipartUploadResult, Post3Error>
async fn abort_multipart_upload( &self, bucket: &str, key: &str, upload_id: &str, ) -> Result<(), Post3Error>
async fn list_parts( &self, bucket: &str, key: &str, upload_id: &str, max_parts: Option<i32>, part_number_marker: Option<i32>, ) -> Result<ListPartsResult, Post3Error>
async fn list_multipart_uploads( &self, bucket: &str, prefix: Option<&str>, key_marker: Option<&str>, upload_id_marker: Option<&str>, max_uploads: Option<i32>, ) -> Result<ListMultipartUploadsResult, Post3Error>
Auto Trait Implementations§
impl Freeze for Store
impl !RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnsafeUnpin for Store
impl !UnwindSafe for Store
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more