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 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
quotas: Lww<BucketQuotas>
Bucket quotas
Implementations
sourceimpl BucketParams
impl BucketParams
Trait Implementations
sourceimpl Clone for BucketParams
impl Clone for BucketParams
sourcefn clone(&self) -> BucketParams
fn clone(&self) -> BucketParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Crdt for BucketParams
impl Crdt for BucketParams
sourceimpl Debug for BucketParams
impl Debug for BucketParams
sourceimpl Default for BucketParams
impl Default for BucketParams
sourceimpl<'de> Deserialize<'de> for BucketParams
impl<'de> Deserialize<'de> for BucketParams
sourcefn 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
sourceimpl PartialEq<BucketParams> for BucketParams
impl PartialEq<BucketParams> for BucketParams
sourcefn eq(&self, other: &BucketParams) -> bool
fn eq(&self, other: &BucketParams) -> bool
sourceimpl Serialize for BucketParams
impl Serialize for BucketParams
impl Eq for BucketParams
impl StructuralEq for BucketParams
impl StructuralPartialEq for BucketParams
Auto Trait Implementations
impl RefUnwindSafe for BucketParams
impl Send for BucketParams
impl Sync for BucketParams
impl Unpin for BucketParams
impl UnwindSafe for BucketParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more