Struct garage_model::permission::BucketKeyPerm
source · [−]pub struct BucketKeyPerm {
pub timestamp: u64,
pub allow_read: bool,
pub allow_write: bool,
pub allow_owner: bool,
}
Expand description
Permission given to a key in a bucket
Fields
timestamp: u64
Timestamp at which the permission was given
allow_read: bool
The key can be used to read the bucket
allow_write: bool
The key can be used to write objects to the bucket
allow_owner: bool
The key can be used to control other aspects of the bucket:
- enable / disable website access
- delete bucket
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 !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for BucketKeyPerm
impl Send for BucketKeyPerm
impl Sync for BucketKeyPerm
impl Unpin for BucketKeyPerm
impl UnwindSafe for BucketKeyPerm
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