pub enum ObjectStorageConfig {
Memory,
Filesystem {
root: String,
},
S3 {
bucket: String,
region: Option<String>,
endpoint: Option<String>,
access_key_id: Option<String>,
secret_access_key: Option<String>,
},
Azure {
container: String,
account_name: String,
account_key: Option<String>,
sas_token: Option<String>,
endpoint: Option<String>,
},
Gcs {
bucket: String,
credential_path: Option<String>,
endpoint: Option<String>,
},
}Expand description
Object storage backend configuration
Variants§
Memory
In-memory storage (for testing)
Filesystem
Local filesystem storage
S3
S3-compatible storage (S3, MinIO, etc.)
Fields
Azure
Azure Blob Storage
Fields
Gcs
Google Cloud Storage
Trait Implementations§
Source§impl Clone for ObjectStorageConfig
impl Clone for ObjectStorageConfig
Source§fn clone(&self) -> ObjectStorageConfig
fn clone(&self) -> ObjectStorageConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectStorageConfig
impl Debug for ObjectStorageConfig
Source§impl Default for ObjectStorageConfig
impl Default for ObjectStorageConfig
Source§fn default() -> ObjectStorageConfig
fn default() -> ObjectStorageConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ObjectStorageConfig
impl RefUnwindSafe for ObjectStorageConfig
impl Send for ObjectStorageConfig
impl Sync for ObjectStorageConfig
impl Unpin for ObjectStorageConfig
impl UnsafeUnpin for ObjectStorageConfig
impl UnwindSafe for ObjectStorageConfig
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