pub struct StoragePermissions { /* private fields */ }
Expand description

List of storage permissions for a storage user.

These identifiers signify what permissions a storage user has. The storage mechanism defines how the identifiers are assigned and how they relate to stored objects.

For simplicity, a we store to eight read and eight write permissions. The first count u32 values in permissions are valid.

Mar, 2022: This interface is considered experimental and for initial prototyping. As we learn more about how these permissions are set and used we may want to revamp this interface.

Implementations

Check if this permission object grants read access to the specified storage_id. Returns true if access is permitted, false otherwise.

Check if this permission object grants write access to the specified storage_id. Returns true if access is permitted, false otherwise.

Get the write_id for saving items to the storage.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.