pub struct S3BucketConfig {
pub endpoint: String,
pub access_key: String,
pub secret_key: String,
pub bucket: String,
pub region: Option<String>,
}Expand description
S3 configuration for building S3Client and BucketClient.
Supported environment variables:
TOOLCRAFT_S3_ENDPOINTorS3_ENDPOINTTOOLCRAFT_S3_ACCESS_KEYorS3_ACCESS_KEYTOOLCRAFT_S3_SECRET_KEYorS3_SECRET_KEYTOOLCRAFT_S3_BUCKETorS3_BUCKETTOOLCRAFT_S3_REGIONorS3_REGION(optional)
Fields§
§endpoint: String§access_key: String§secret_key: String§bucket: String§region: Option<String>Implementations§
Source§impl S3BucketConfig
impl S3BucketConfig
Trait Implementations§
Source§impl Clone for S3BucketConfig
impl Clone for S3BucketConfig
Source§fn clone(&self) -> S3BucketConfig
fn clone(&self) -> S3BucketConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for S3BucketConfig
impl RefUnwindSafe for S3BucketConfig
impl Send for S3BucketConfig
impl Sync for S3BucketConfig
impl Unpin for S3BucketConfig
impl UnsafeUnpin for S3BucketConfig
impl UnwindSafe for S3BucketConfig
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