[−][src]Enum redis::acl::Rule
acl
only.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
Enable the user: it is possible to authenticate as this user.
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.
RemoveCommand(String)
Remove the command to the list of commands the user can call.
AddCategory(String)
Add all the commands in such category to be called by the user.
RemoveCategory(String)
Remove the commands from such category the client can call.
Alias for +@all
. Note that it implies the ability to execute all the
future commands loaded via the modules system.
Alias for -@all
.
AddPass(String)
Add this password to the list of valid password for the user.
RemovePass(String)
Remove this password from the list of valid passwords.
AddHashedPass(String)
Add this SHA-256 hash value to the list of valid passwords for the user.
RemoveHashedPass(String)
Remove this hash value from from the list of valid passwords
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.
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.
Alias for ~*
.
Flush the list of allowed keys patterns.
Performs the following actions: resetpass
, resetkeys
, off
, -@all
.
The user returns to the same state it has immediately after its creation.
Trait Implementations
impl Debug for Rule
[src]
impl Eq for Rule
[src]
impl PartialEq<Rule> for Rule
[src]
impl StructuralEq for Rule
[src]
impl StructuralPartialEq for Rule
[src]
impl ToRedisArgs for Rule
[src]
pub fn write_redis_args<W: ?Sized>(&self, out: &mut W) where
W: RedisWrite,
[src]
W: RedisWrite,
pub fn to_redis_args(&self) -> Vec<Vec<u8>>
[src]
pub fn describe_numeric_behavior(&self) -> NumericBehavior
[src]
pub fn is_single_arg(&self) -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,