pub struct ACLRoleRedisRule {
pub rule_id: Option<i32>,
pub rule_name: Option<String>,
pub databases: Option<Vec<ACLRoleDatabase>>,
}Expand description
Redis rule as embedded in an ACL role response
This has different field names than ACLRedisRule because the API
uses different JSON keys when rules are embedded in role responses.
Fields§
§rule_id: Option<i32>Rule ID
rule_name: Option<String>Rule name
databases: Option<Vec<ACLRoleDatabase>>Databases this rule applies to within the role
Trait Implementations§
Source§impl Clone for ACLRoleRedisRule
impl Clone for ACLRoleRedisRule
Source§fn clone(&self) -> ACLRoleRedisRule
fn clone(&self) -> ACLRoleRedisRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ACLRoleRedisRule
impl Debug for ACLRoleRedisRule
Source§impl<'de> Deserialize<'de> for ACLRoleRedisRule
impl<'de> Deserialize<'de> for ACLRoleRedisRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ACLRoleRedisRule
impl RefUnwindSafe for ACLRoleRedisRule
impl Send for ACLRoleRedisRule
impl Sync for ACLRoleRedisRule
impl Unpin for ACLRoleRedisRule
impl UnwindSafe for ACLRoleRedisRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more