pub struct InvalidRelation {
pub code: Cow<'static, str>,
pub field1: Field,
pub field2: Field,
}
Expand description
Holds details about a constraint violation found by validating a constraint
in the RelatedFields
context.
Fields§
§code: Cow<'static, str>
Error code that identifies the exact error.
A client that receives the constraint violation should be able to interpret this error code.
field1: Field
Details about the first of the pair of related fields
field2: Field
Details about the second of the pair of related fields
Trait Implementations§
Source§impl Clone for InvalidRelation
impl Clone for InvalidRelation
Source§fn clone(&self) -> InvalidRelation
fn clone(&self) -> InvalidRelation
Returns a copy 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 InvalidRelation
impl Debug for InvalidRelation
Source§impl<'de> Deserialize<'de> for InvalidRelation
impl<'de> Deserialize<'de> for InvalidRelation
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
Source§impl Display for InvalidRelation
impl Display for InvalidRelation
Source§impl From<InvalidRelation> for ConstraintViolation
impl From<InvalidRelation> for ConstraintViolation
Source§fn from(invalid_relation: InvalidRelation) -> Self
fn from(invalid_relation: InvalidRelation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InvalidRelation
impl PartialEq for InvalidRelation
Source§impl Serialize for InvalidRelation
impl Serialize for InvalidRelation
impl StructuralPartialEq for InvalidRelation
Auto Trait Implementations§
impl Freeze for InvalidRelation
impl RefUnwindSafe for InvalidRelation
impl Send for InvalidRelation
impl Sync for InvalidRelation
impl Unpin for InvalidRelation
impl UnwindSafe for InvalidRelation
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