Enum bonsaidb::core::permissions::bonsai::ServerAction [−][src]
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)
Tuple Fields
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
The full name of this action.
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ServerAction, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ServerAction, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ServerAction
impl Send for ServerAction
impl Sync for ServerAction
impl Unpin for ServerAction
impl UnwindSafe for ServerAction
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