pub struct S3Config {
pub bucket: String,
pub region: String,
pub access_key: String,
pub secret_key: String,
pub endpoint: Option<String>,
pub timeout_seconds: u64,
pub multipart_threshold: u64,
pub part_size: usize,
}Fields§
§bucket: StringS3 存储桶名称
region: StringAWS 区域,如 “us-east-1”
access_key: StringAccess Key ID
secret_key: StringSecret Access Key
endpoint: Option<String>自定义 endpoint(MinIO 等),留空则使用 AWS S3
timeout_seconds: u64请求超时秒数
multipart_threshold: u64文件大小超过该阈值时切换为 Multipart Upload(字节,默认 100MB)
part_size: usize每个 part 的大小(字节,默认 16MB)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for S3Config
impl RefUnwindSafe for S3Config
impl Send for S3Config
impl Sync for S3Config
impl Unpin for S3Config
impl UnsafeUnpin for S3Config
impl UnwindSafe for S3Config
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