Struct garage_model::key_table::KeyParams
source · [−]pub struct KeyParams {
pub secret_key: String,
pub name: Lww<String>,
pub allow_create_bucket: Lww<bool>,
pub authorized_buckets: Map<Uuid, BucketKeyPerm>,
pub local_aliases: LwwMap<String, Option<Uuid>>,
}
Expand description
Configuration for a key
Fields
secret_key: String
The secret_key associated (immutable)
name: Lww<String>
Name for the key
allow_create_bucket: Lww<bool>
Flag to allow users having this key to create buckets
If the key is present: it gives some permissions, a map of bucket IDs (uuids) to permissions. Otherwise no permissions are granted to key
local_aliases: LwwMap<String, Option<Uuid>>
A key can have a local view of buckets names it is the only one to see, this is the namespace for these aliases
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
Auto Trait Implementations
impl RefUnwindSafe for KeyParams
impl UnwindSafe for KeyParams
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