pub struct ManagedSettings {
pub origin: String,
pub error: Option<String>,
pub rules: Vec<PermissionRuleEntry>,
pub disable_bypass: bool,
pub values: Map<String, Value>,
}Fields§
§origin: StringThe file (or other source) the layer came from.
error: Option<String>Why the layer cannot be honoured. While set, every tool call is refused.
rules: Vec<PermissionRuleEntry>§disable_bypass: bool§values: Map<String, Value>Every other setting the layer sets, shaped as a settings file holds it: put over every other layer.
Implementations§
Source§impl ManagedSettings
impl ManagedSettings
Sourcepub fn asks_under_bypass(&self) -> bool
pub fn asks_under_bypass(&self) -> bool
Whether a bypassPermissions session under this layer can still be
asked about a call: the layer takes bypass away, or holds an ask or
deny rule. A deny counts because a command it cannot read through
($CMD x) is asked about rather than refused.
Trait Implementations§
Source§impl Clone for ManagedSettings
impl Clone for ManagedSettings
Source§impl Debug for ManagedSettings
impl Debug for ManagedSettings
Source§impl Default for ManagedSettings
impl Default for ManagedSettings
Source§impl PartialEq for ManagedSettings
impl PartialEq for ManagedSettings
impl StructuralPartialEq for ManagedSettings
Auto Trait Implementations§
impl Forget for ManagedSettings
impl Freeze for ManagedSettings
impl Move for ManagedSettings
impl RefUnwindSafe for ManagedSettings
impl Send for ManagedSettings
impl Sync for ManagedSettings
impl Unpin for ManagedSettings
impl UnsafeUnpin for ManagedSettings
impl UnwindSafe for ManagedSettings
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