pub struct PolicyDiagnostic {
pub valid: bool,
pub message: Option<String>,
pub line: Option<u32>,
pub column: Option<u32>,
}Expand description
Policy validation diagnostic result
Returned by validate_policy_detailed to provide structured error information
including line and column numbers for precise error reporting in code editors.
This enables IDE integrations (like VS Code) to highlight exact error locations in policy TOML files, improving developer experience.
Fields§
§valid: boolWhether the policy passed validation
message: Option<String>Human-readable error message if validation failed, None if valid
line: Option<u32>Line number where error occurred (1-indexed), None if not applicable
column: Option<u32>Column number where error occurred (1-indexed), None if not applicable
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PolicyDiagnostic
impl RefUnwindSafe for PolicyDiagnostic
impl Send for PolicyDiagnostic
impl Sync for PolicyDiagnostic
impl Unpin for PolicyDiagnostic
impl UnsafeUnpin for PolicyDiagnostic
impl UnwindSafe for PolicyDiagnostic
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