pub struct AuditDef {
pub agent: String,
pub steps: Option<Vec<String>>,
pub mode: AuditMode,
}Expand description
GH #34 — one Blueprint-declared after-run audit hook. See
Blueprint::audits for the persistence / invariant contract.
Fields§
§agent: StringName of the audit agent (must match a Blueprint::agents entry’s
name) the engine dispatches after a matched step settles.
Validated at Compiler::compile time (mirrors
AgentDef.spec.operator_ref’s operator_ref validation) — an
unresolved name rejects compilation.
steps: Option<Vec<String>>Step names this audit applies to, matched against the step’s agent
ref name. None, or a list containing the literal "*", means
“every step”. Some(vec![]) (an explicit empty list) audits no
step. None is the default.
mode: AuditModeDispatch timing for this audit’s agent (see AuditMode).
Defaults to AuditMode::Async.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuditDef
impl<'de> Deserialize<'de> for AuditDef
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
Source§impl JsonSchema for AuditDef
impl JsonSchema for AuditDef
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for AuditDef
Auto Trait Implementations§
impl Freeze for AuditDef
impl RefUnwindSafe for AuditDef
impl Send for AuditDef
impl Sync for AuditDef
impl Unpin for AuditDef
impl UnsafeUnpin for AuditDef
impl UnwindSafe for AuditDef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more