pub struct BucketConfig {
pub name: String,
pub tier: BucketTier,
pub capacity_hint: u64,
pub ttl_secs: u32,
pub versioning: bool,
}Expand description
Configuration for creating a bucket.
Fields§
§name: StringBucket name.
tier: BucketTierStorage tier for the bucket.
capacity_hint: u64Hint for expected capacity in bytes (0 = no hint).
ttl_secs: u32Default TTL in seconds for objects in this bucket.
versioning: boolWhether to enable object versioning.
Implementations§
Source§impl BucketConfig
impl BucketConfig
Sourcepub fn tier(self, tier: BucketTier) -> Self
pub fn tier(self, tier: BucketTier) -> Self
Set the storage tier.
Sourcepub fn capacity_hint(self, bytes: u64) -> Self
pub fn capacity_hint(self, bytes: u64) -> Self
Set the capacity hint.
Sourcepub fn versioning(self, enabled: bool) -> Self
pub fn versioning(self, enabled: bool) -> Self
Enable versioning.
Trait Implementations§
Source§impl Clone for BucketConfig
impl Clone for BucketConfig
Source§fn clone(&self) -> BucketConfig
fn clone(&self) -> BucketConfig
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 BucketConfig
impl Debug for BucketConfig
Source§impl Default for BucketConfig
impl Default for BucketConfig
Source§impl<'de> Deserialize<'de> for BucketConfig
impl<'de> Deserialize<'de> for BucketConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BucketConfig
impl RefUnwindSafe for BucketConfig
impl Send for BucketConfig
impl Sync for BucketConfig
impl Unpin for BucketConfig
impl UnwindSafe for BucketConfig
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