toggle
Module: control::toggle
Section titled “Module: control::toggle”Contents
Section titled “Contents”Enums
PolicyState- State of one Cedar policy as seen by Policy Control.
firma_tui::control::toggle::PolicyState
Section titled “firma_tui::control::toggle::PolicyState”Enum
State of one Cedar policy as seen by Policy Control.
Enabled and Disabled are the only states that can be requested for a
rewrite. The remaining values explain why a state could not be read from
disk.
Variants:
Enabled- The policy exists and does not have the managed disable condition.Disabled- The policy exists and has the managed disable condition.MissingFile- The referenced Cedar file does not exist.MissingId- The Cedar file exists, but the requested@id(...)was not found.InvalidPolicy- The Cedar source could not be interpreted well enough to read state.ReadError- The Cedar file exists, but could not be read.
Methods:
fn is_enabled(self: Self) -> bool- Returns true only for a policy that is present and enabled.
Traits: Copy, Eq
Trait Implementations:
- PartialEq
fn eq(self: &Self, other: &PolicyState) -> bool
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- Display
fn fmt(self: &Self, formatter: & mut fmt::Formatter) -> fmt::Result
- Clone
fn clone(self: &Self) -> PolicyState