enforcement
Module: config::enforcement
Section titled “Module: config::enforcement”Contents
Section titled “Contents”Structs
ConstraintEnforcementConfig- Validated constraint enforcement configuration.EnforcementConfig- Validated enforcement engine configuration.MappingRuleConfig- A single mapping rule as deserialized from the rules TOML file.MappingRulesFile- Top-level structure of the mapping rules TOML file.
firma_sidecar::config::enforcement::ConstraintEnforcementConfig
Section titled “firma_sidecar::config::enforcement::ConstraintEnforcementConfig”Struct
Validated constraint enforcement configuration.
Fields:
capacity: std::num::NonZeroUsize- Maximum number of active sessions tracked in the session-state cache.backend: firma_config_schema::sidecar::enforcement::SessionStateBackend- Session-state storage backend.path: Option<std::path::PathBuf>- Optional path for the persistent session-state JSONL file.
firma_sidecar::config::enforcement::EnforcementConfig
Section titled “firma_sidecar::config::enforcement::EnforcementConfig”Struct
Validated enforcement engine configuration.
Configurable constraint enforcement (Stage 2).
Fields:
constraint_enforcement: ConstraintEnforcementConfig- Constraint enforcement settings.
Trait Implementations:
- Default
fn default() -> Self
- From
fn from(s: schema::EnforcementConfig) -> Self
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- Clone
fn clone(self: &Self) -> Self
firma_sidecar::config::enforcement::MappingRuleConfig
Section titled “firma_sidecar::config::enforcement::MappingRuleConfig”Struct
A single mapping rule as deserialized from the rules TOML file.
Fields:
method: Option<firma_http::Method>- HTTP method to match (None= any method).host: String- Host pattern to match (supports*wildcard).path: Option<String>- Path pattern to match (supports*wildcard).action_class: String- Canonical action class this rule maps to.
Methods:
fn validate(self: &Self) -> Result<(), String>- Validate a single mapping rule.
Trait Implementations:
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- Clone
fn clone(self: &Self) -> Self
- Deserialize
fn deserialize<__D>(__deserializer: __D) -> _serde::__private229::Result<Self, <__D as >::Error>
- Serialize
fn serialize<__S>(self: &Self, __serializer: __S) -> _serde::__private229::Result<<__S as >::Ok, <__S as >::Error>
firma_sidecar::config::enforcement::MappingRulesFile
Section titled “firma_sidecar::config::enforcement::MappingRulesFile”Struct
Top-level structure of the mapping rules TOML file.
Fields:
rules: Vec<MappingRuleConfig>- Individual mapping rules.
Methods:
fn rule_count(self: &Self) -> usize- Total number of mapping rules in this file.fn validate(self: &Self) -> Result<(), String>- Validate all rules in the file.
Trait Implementations:
- Deserialize
fn deserialize<__D>(__deserializer: __D) -> _serde::__private229::Result<Self, <__D as >::Error>
- Clone
fn clone(self: &Self) -> Self
- Serialize
fn serialize<__S>(self: &Self, __serializer: __S) -> _serde::__private229::Result<<__S as >::Ok, <__S as >::Error>
- Default
fn default() -> Self
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result