pub struct Policy {
pub defaults: Defaults,
pub target: BTreeMap<String, TargetPolicy>,
pub flows: Option<FlowsPolicy>,
pub journal: Option<JournalLocation>,
pub telemetry: Option<TelemetryPolicy>,
}Expand description
The whole keel.toml document (contracts/policy.schema.json), typed.
deny_unknown_fields at every object level (here and on the layer structs)
makes a typo’d or unknown key a configuration error (KEEL-E001 with the exact
path via serde_path_to_error), honoring the frozen schema’s
additionalProperties: false and E001’s “an unknown key was used” — instead
of the previous silent drop that ran the target on defaults the user never
asked for.
Fields§
§defaults: Defaults§target: BTreeMap<String, TargetPolicy>§flows: Option<FlowsPolicy>§journal: Option<JournalLocation>Journal location (schema-validated), honored by the real core at
configure time (see JournalLocation).
telemetry: Option<TelemetryPolicy>Telemetry config (schema-validated); otlp_endpoint is honored by
native front ends (env still wins), console is not yet wired — see
TelemetryPolicy.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Policy
impl<'de> Deserialize<'de> for Policy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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