Skip to content

policies

Structs


firma_tui::control::policies::PolicyStateReader

Section titled “firma_tui::control::policies::PolicyStateReader”

Struct

Reads enabled/disabled state for policy ids in one Cedar file.

The reader is a small indirection around the Cedar state parser. It lets the app load policy rows without knowing whether the states came from disk, a test double, or a future cached source.

Tuple Struct: ()

Methods:

  • fn new<impl Fn(&Path, &[String]) -> PolicyStateMap + Send + Sync + 'static>(read: impl Trait) -> Self - Creates a reader from a fn that accepts one Cedar file and the

Trait Implementations:

  • Default
    • fn default() -> Self
  • Debug
    • fn fmt(self: &Self, formatter: & mut fmt::Formatter) -> fmt::Result
  • Clone
    • fn clone(self: &Self) -> PolicyStateReader