Skip to content

registry

Structs

Enums

  • RiskLevel - Risk level associated with an action class.

firma_sidecar::enforcement::registry::ActionClassDefinition

Section titled “firma_sidecar::enforcement::registry::ActionClassDefinition”

Struct

Definition of a single action class in the registry.

Fields:

  • name: &'static str
  • domain: &'static str
  • risk_level: RiskLevel

Trait Implementations:

  • Clone
    • fn clone(self: &Self) -> ActionClassDefinition
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result

firma_sidecar::enforcement::registry::ActionClassRegistry

Section titled “firma_sidecar::enforcement::registry::ActionClassRegistry”

Struct

The v0.1 Canonical Action Class Registry.

Contains all 15 action classes defined by FEP v0.1 §2.3.5. Immutable after construction — runtime extension is not permitted by the spec.

Methods:

  • fn v0_1() -> Self - Build the v0.1 registry: 15 canonical FEP §2.3.5 classes plus 29
  • fn contains(self: &Self, name: &str) -> bool - Check if an action class name is in the registry.
  • fn get(self: &Self, name: &str) -> Option<&ActionClassDefinition> - Get the definition for an action class.
  • fn len(self: &Self) -> usize - Return the number of registered action classes.
  • fn is_empty(self: &Self) -> bool - Check if the registry is empty.

Trait Implementations:

  • Clone
    • fn clone(self: &Self) -> ActionClassRegistry
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result

firma_sidecar::enforcement::registry::RiskLevel

Section titled “firma_sidecar::enforcement::registry::RiskLevel”

Enum

Risk level associated with an action class.

Variants:

  • Low
  • Medium
  • High
  • Critical

Traits: Eq, Copy

Trait Implementations:

  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • PartialEq
    • fn eq(self: &Self, other: &RiskLevel) -> bool
  • Clone
    • fn clone(self: &Self) -> RiskLevel