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>>>,
}
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
Implementations
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more