Module bonsaidb_core::permissions 
source · Expand description
Types for creating and validating permissions.
Modules
- Types used for granting permissions within BonsaiDb.
 
Structs
- A unique name of an action.
 - An
actionwas denied. - A collection of allowed permissions. This is constructed from a
Vec<Statement>. By default, no actions are allowed on any resources. - A unique name/identifier of a resource.
 - A statement of permissions. A statement describes whether one or more
actionsshould beallowedto be taken againstresources. 
Enums
- A list of
ActionNames. - A single element of a
ResourceName 
Traits
- An action that can be allowed or disallowed.
 - Dispatches
Tto an appropriate handler. This trait is derivable. 
Derive Macros
- Derives the
actionable::Actiontrait. - Derives a set of traits that can be used to implement a permissions-driven API. There are options that can be customized with the
#[actionable]attribute at the enum level: - Derives the
Dispatchertrait.