pub struct ValidationErrorExtensions {
pub code: String,
pub rule_type: String,
pub field_path: Option<String>,
pub context: Option<Value>,
}Expand description
Extensions carrying validation-specific error details.
Fields§
§code: StringGraphQL error code
rule_type: StringHuman-readable rule type that failed
field_path: Option<String>Field path as dot-separated string
context: Option<Value>Additional context (e.g., why pattern didn’t match)
Trait Implementations§
Source§impl Clone for ValidationErrorExtensions
impl Clone for ValidationErrorExtensions
Source§fn clone(&self) -> ValidationErrorExtensions
fn clone(&self) -> ValidationErrorExtensions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValidationErrorExtensions
impl Debug for ValidationErrorExtensions
Source§impl<'de> Deserialize<'de> for ValidationErrorExtensions
impl<'de> Deserialize<'de> for ValidationErrorExtensions
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
Auto Trait Implementations§
impl Freeze for ValidationErrorExtensions
impl RefUnwindSafe for ValidationErrorExtensions
impl Send for ValidationErrorExtensions
impl Sync for ValidationErrorExtensions
impl Unpin for ValidationErrorExtensions
impl UnsafeUnpin for ValidationErrorExtensions
impl UnwindSafe for ValidationErrorExtensions
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