Struct garage_model::key_table::Key[][src]

pub struct Key {
    pub key_id: String,
    pub secret_key: String,
    pub name: LWW<String>,
    pub deleted: Bool,
    pub authorized_buckets: LWWMap<String, PermissionSet>,
}

Fields

key_id: Stringsecret_key: Stringname: LWW<String>deleted: Boolauthorized_buckets: LWWMap<String, PermissionSet>

Implementations

impl Key[src]

pub fn new(name: String) -> Self[src]

pub fn import(key_id: &str, secret_key: &str, name: &str) -> Self[src]

pub fn delete(key_id: String) -> Self[src]

pub fn allow_read(&self, bucket: &str) -> bool[src]

Add an authorized bucket, only if it wasn’t there before

pub fn allow_write(&self, bucket: &str) -> bool[src]

Trait Implementations

impl CRDT for Key[src]

impl Clone for Key[src]

impl Debug for Key[src]

impl<'de> Deserialize<'de> for Key[src]

impl Entry<EmptyKey, String> for Key[src]

impl PartialEq<Key> for Key[src]

impl Serialize for Key[src]

impl StructuralPartialEq for Key[src]

Auto Trait Implementations

impl RefUnwindSafe for Key

impl Send for Key

impl Sync for Key

impl Unpin for Key

impl UnwindSafe for Key

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,