Struct garage_model::bucket_table::BucketParams
source · pub struct BucketParams {
pub creation_date: u64,
pub authorized_keys: Map<String, BucketKeyPerm>,
pub aliases: LwwMap<String, bool>,
pub local_aliases: LwwMap<(String, String), bool>,
pub website_config: Lww<Option<WebsiteConfig>>,
pub cors_config: Lww<Option<Vec<CorsRule>>>,
pub lifecycle_config: Lww<Option<Vec<LifecycleRule>>>,
pub quotas: Lww<BucketQuotas>,
}
Expand description
Configuration for a bucket
Fields§
§creation_date: u64
Bucket’s creation date
Map of key with access to the bucket, and what kind of access they give
aliases: LwwMap<String, bool>
Map of aliases that are or have been given to this bucket in the global namespace (not authoritative: this is just used as an indication to map back to aliases when doing ListBuckets)
local_aliases: LwwMap<(String, String), bool>
Map of aliases that are or have been given to this bucket in namespaces local to keys key = (access key id, alias name)
website_config: Lww<Option<WebsiteConfig>>
Whether this bucket is allowed for website access (under all of its global alias names), and if so, the website configuration XML document
cors_config: Lww<Option<Vec<CorsRule>>>
CORS rules
lifecycle_config: Lww<Option<Vec<LifecycleRule>>>
Lifecycle configuration
quotas: Lww<BucketQuotas>
Bucket quotas
Trait Implementations§
source§impl Clone for BucketParams
impl Clone for BucketParams
source§fn clone(&self) -> BucketParams
fn clone(&self) -> BucketParams
Returns a copy 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 Crdt for BucketParams
impl Crdt for BucketParams
source§impl Debug for BucketParams
impl Debug for BucketParams
source§impl Default for BucketParams
impl Default for BucketParams
source§impl<'de> Deserialize<'de> for BucketParams
impl<'de> Deserialize<'de> for BucketParams
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
source§impl PartialEq for BucketParams
impl PartialEq for BucketParams
source§fn eq(&self, other: &BucketParams) -> bool
fn eq(&self, other: &BucketParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BucketParams
impl Serialize for BucketParams
impl Eq for BucketParams
impl StructuralPartialEq for BucketParams
Auto Trait Implementations§
impl Freeze for BucketParams
impl RefUnwindSafe for BucketParams
impl Send for BucketParams
impl Sync for BucketParams
impl Unpin for BucketParams
impl UnwindSafe for BucketParams
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.