Struct garage_model::key_table::Key
source · [−]Expand description
An api key
Fields
key_id: String
The id of the key (immutable), used as partition key
state: Deletable<KeyParams>
Internal state of the key
Implementations
Initialize a new Key, generating a random identifier and associated secret key
Create a new Key which can me merged to mark an existing key deleted
Returns true if this represents a deleted bucket
Returns an option representing the params (None if in deleted state)
Mutable version of .state()
Get permissions for a bucket
Check if Key
is allowed to read in bucket
Check if Key
is allowed to write in bucket
Check if Key
is owner of bucket
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
Get the key used to partition
Is the entry a tombstone? Default implementation always return false
Auto Trait Implementations
impl RefUnwindSafe for Key
impl UnwindSafe for Key
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