Skip to main content

error

Function error 

Source
pub fn error(
    path: impl AsRef<str>,
    message: impl Into<String>,
) -> ValidationIssue
Expand description

Creates an ERROR level issue.

Use this for validation failures that must prevent the operation from succeeding.