pub struct AgenticSystemValidationFinding { /* private fields */ }Expand description
One defect found while analysing an agentic system design.
The severity vocabulary is the ceremony one, because “error blocks publication, warning does not” means the same thing at both levels and a second vocabulary would only need translating. The locus is its own, because a design has elements a definition does not.
Deliberately not serializable: it carries a DomainError, and
serialization belongs to the adapter that renders it.
Implementations§
Source§impl AgenticSystemValidationFinding
impl AgenticSystemValidationFinding
pub const fn error( locus: AgenticSystemValidationLocus, defect: DomainError, ) -> Self
pub const fn warning( locus: AgenticSystemValidationLocus, defect: DomainError, ) -> Self
Sourcepub fn refusal(
locus: AgenticSystemValidationLocus,
reason: impl Into<String>,
) -> Self
pub fn refusal( locus: AgenticSystemValidationLocus, reason: impl Into<String>, ) -> Self
An error whose explanation names the elements involved.
pub const fn severity(&self) -> CeremonyValidationSeverity
pub const fn locus(&self) -> &AgenticSystemValidationLocus
pub const fn defect(&self) -> &DomainError
pub fn is_blocking(&self) -> bool
Trait Implementations§
impl StructuralPartialEq for AgenticSystemValidationFinding
Auto Trait Implementations§
impl Freeze for AgenticSystemValidationFinding
impl RefUnwindSafe for AgenticSystemValidationFinding
impl Send for AgenticSystemValidationFinding
impl Sync for AgenticSystemValidationFinding
impl Unpin for AgenticSystemValidationFinding
impl UnsafeUnpin for AgenticSystemValidationFinding
impl UnwindSafe for AgenticSystemValidationFinding
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