pub struct ErrorMeta {
pub code: String,
pub message: String,
pub path: Option<String>,
pub severity: ErrorSeverity,
pub help: Option<String>,
pub source: Option<String>,
}Expand description
Error metadata defined in the IR.
This is the error specification attached to constraints in the schema.
Fields§
§code: StringStable error code (e.g., “PAYEE_TIN_INVALID”).
message: StringHuman-readable message template.
path: Option<String>Optional path override. If not set, uses the constraint’s context path.
severity: ErrorSeverityError severity.
help: Option<String>Optional help text with fix suggestions.
source: Option<String>Optional source identifier (e.g., “irs”, “company”).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorMeta
impl<'de> Deserialize<'de> for ErrorMeta
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 Eq for ErrorMeta
impl StructuralPartialEq for ErrorMeta
Auto Trait Implementations§
impl Freeze for ErrorMeta
impl RefUnwindSafe for ErrorMeta
impl Send for ErrorMeta
impl Sync for ErrorMeta
impl Unpin for ErrorMeta
impl UnsafeUnpin for ErrorMeta
impl UnwindSafe for ErrorMeta
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.