MCPcopy Create free account
hub / github.com/Keats/validator / errors

Method errors

validator/src/types.rs:137–139  ·  view source on GitHub ↗

Returns a map of field-level validation errors found for the struct that was validated and any of it's nested structs that are tagged for validation.

(&self)

Source from the content-addressed store, hash-verified

135 /// Returns a map of field-level validation errors found for the struct that was validated and
136 /// any of it's nested structs that are tagged for validation.
137 pub fn errors(&self) -> &HashMap<Cow<'static, str>, ValidationErrorsKind> {
138 &self.0
139 }
140
141 /// Returns a mutable map of field-level validation errors found for the struct that was validated and
142 /// any of it's nested structs that are tagged for validation.

Calls

no outgoing calls