Enum bonsaidb::core::permissions::bonsai::ServerAction
source · pub enum ServerAction {
Connect,
ListAvailableSchemas,
ListDatabases,
CreateDatabase,
DeleteDatabase,
CreateUser,
DeleteUser,
SetPassword,
Authenticate(AuthenticationMethod),
AssumeIdentity,
ModifyUserPermissionGroups,
ModifyUserRoles,
}
Expand description
Actions that operate on a server.
Variants§
Connect
Permits connecting to the server. Upon negotiating authentication, the
effective permissions of the connected party will be checked for
permissions to Connect
. If not allowed, the connection will be
terminated.
ListAvailableSchemas
ListDatabases
Permits StorageConnection::list_databases
.
CreateDatabase
Permits StorageConnection::create_database
.
DeleteDatabase
Permits StorageConnection::delete_database
.
CreateUser
Permits StorageConnection::create_user
.
DeleteUser
Permits StorageConnection::delete_user
.
SetPassword
Permits StorageConnection::set_user_password
.
Authenticate(AuthenticationMethod)
Permits the ability to log in with a password.
AssumeIdentity
Permits the ability to assume an identity without authenticating that they are the identity in question.
ModifyUserPermissionGroups
Permits StorageConnection::add_permission_group_to_user
and StorageConnection::remove_permission_group_from_user
.
ModifyUserRoles
Permits .
Permits StorageConnection::add_role_to_user
and StorageConnection::remove_role_from_user
.
Trait Implementations§
source§impl Action for ServerAction
impl Action for ServerAction
source§fn name(&self) -> ActionName
fn name(&self) -> ActionName
source§impl Clone for ServerAction
impl Clone for ServerAction
source§fn clone(&self) -> ServerAction
fn clone(&self) -> ServerAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more