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§
source§impl<'de> Deserialize<'de> for KeyParams
impl<'de> Deserialize<'de> for KeyParams
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<KeyParams> for KeyParams
impl PartialEq<KeyParams> for KeyParams
impl Eq for KeyParams
impl StructuralEq for KeyParams
impl StructuralPartialEq for KeyParams
Auto Trait Implementations§
impl RefUnwindSafe for KeyParams
impl Send for KeyParams
impl Sync for KeyParams
impl Unpin for KeyParams
impl UnwindSafe for KeyParams
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.