Enum redis::acl::Rule[][src]

pub enum Rule {
Show 18 variants On, Off, AddCommand(String), RemoveCommand(String), AddCategory(String), RemoveCategory(String), AllCommands, NoCommands, AddPass(String), RemovePass(String), AddHashedPass(String), RemoveHashedPass(String), NoPass, ResetPass, Pattern(String), AllKeys, ResetKeys, Reset,
}
This is supported on crate feature acl only.
Expand description

ACL rules are used in order to activate or remove a flag, or to perform a given change to the user ACL, which under the hood are just single words.

Variants

On

Enable the user: it is possible to authenticate as this user.

Off

Disable the user: it’s no longer possible to authenticate with this user, however the already authenticated connections will still work.

AddCommand(String)

Add the command to the list of commands the user can call.

Tuple Fields of AddCommand

0: String
RemoveCommand(String)

Remove the command to the list of commands the user can call.

Tuple Fields of RemoveCommand

0: String
AddCategory(String)

Add all the commands in such category to be called by the user.

Tuple Fields of AddCategory

0: String
RemoveCategory(String)

Remove the commands from such category the client can call.

Tuple Fields of RemoveCategory

0: String
AllCommands

Alias for +@all. Note that it implies the ability to execute all the future commands loaded via the modules system.

NoCommands

Alias for -@all.

AddPass(String)

Add this password to the list of valid password for the user.

Tuple Fields of AddPass

0: String
RemovePass(String)

Remove this password from the list of valid passwords.

Tuple Fields of RemovePass

0: String
AddHashedPass(String)

Add this SHA-256 hash value to the list of valid passwords for the user.

Tuple Fields of AddHashedPass

0: String
RemoveHashedPass(String)

Remove this hash value from from the list of valid passwords

Tuple Fields of RemoveHashedPass

0: String
NoPass

All the set passwords of the user are removed, and the user is flagged as requiring no password: it means that every password will work against this user.

ResetPass

Flush the list of allowed passwords. Moreover removes the nopass status.

Pattern(String)

Add a pattern of keys that can be mentioned as part of commands.

Tuple Fields of Pattern

0: String
AllKeys

Alias for ~*.

ResetKeys

Flush the list of allowed keys patterns.

Reset

Performs the following actions: resetpass, resetkeys, off, -@all. The user returns to the same state it has immediately after its creation.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This writes the value into a vector of bytes. Each item is a single argument. Most items generate a single item. Read more

This converts the value into a vector of bytes. Each item is a single argument. Most items generate a vector of a single item. Read more

Returns an information about the contained value with regards to it’s numeric behavior in a redis context. This is used in some high level concepts to switch between different implementations of redis functions (for instance INCR vs INCRBYFLOAT). Read more

Returns an indiciation if the value contained is exactly one argument. It returns false if it’s zero or more than one. This is used in some high level functions to intelligently switch between GET and MGET variants. 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

Performs the conversion.

Performs the conversion.

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.