Struct zenoh_config::AclConfig
source · pub struct AclConfig {
pub enabled: bool,
pub default_permission: Permission,
pub rules: Option<Vec<AclConfigRules>>,
}
Fields§
§enabled: bool
§default_permission: Permission
§rules: Option<Vec<AclConfigRules>>
Implementations§
source§impl AclConfig
impl AclConfig
pub fn validate(&self) -> bool
pub fn new( enabled: bool, default_permission: Permission, rules: Option<Vec<AclConfigRules>> ) -> Result<Self, Self>
pub fn enabled(&self) -> &bool
pub fn set_enabled(&mut self, value: bool) -> Result<bool, bool>
pub fn default_permission(&self) -> &Permission
pub fn set_default_permission( &mut self, value: Permission ) -> Result<Permission, Permission>
pub fn rules(&self) -> &Option<Vec<AclConfigRules>>
pub fn set_rules( &mut self, value: Option<Vec<AclConfigRules>> ) -> Result<Option<Vec<AclConfigRules>>, Option<Vec<AclConfigRules>>>
source§impl AclConfig
impl AclConfig
pub fn from_deserializer<'d, D: Deserializer<'d>>(
d: D
) -> Result<Self, Result<Self, D::Error>>where
Self: Deserialize<'d>,
Trait Implementations§
source§impl<'de> Deserialize<'de> for AclConfig
impl<'de> Deserialize<'de> for AclConfig
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
source§impl ValidatedMap for AclConfig
impl ValidatedMap for AclConfig
fn insert<'d, D: Deserializer<'d>>( &mut self, key: &str, value: D ) -> Result<(), InsertionError>
fn get<'a>(&'a self, key: &str) -> Result<&dyn Any, GetError>
fn get_json(&self, key: &str) -> Result<String, GetError>
type Keys = Vec<String>
fn keys(&self) -> Self::Keys
fn insert_json5(&mut self, key: &str, value: &str) -> Result<(), InsertionError>
Auto Trait Implementations§
impl Freeze for AclConfig
impl RefUnwindSafe for AclConfig
impl Send for AclConfig
impl Sync for AclConfig
impl Unpin for AclConfig
impl UnwindSafe for AclConfig
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