pub struct InvalidState {
pub code: Cow<'static, str>,
pub params: Vec<Parameter>,
}
Expand description
Holds details about a constraint violation found by validating a constraint
in the State
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.
params: Vec<Parameter>
A list of parameters that may be used to provide more meaningful error messages to the user of an application
Trait Implementations§
Source§impl Clone for InvalidState
impl Clone for InvalidState
Source§fn clone(&self) -> InvalidState
fn clone(&self) -> InvalidState
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 InvalidState
impl Debug for InvalidState
Source§impl<'de> Deserialize<'de> for InvalidState
impl<'de> Deserialize<'de> for InvalidState
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 InvalidState
impl Display for InvalidState
Source§impl From<InvalidState> for ConstraintViolation
impl From<InvalidState> for ConstraintViolation
Source§fn from(invalid_state: InvalidState) -> Self
fn from(invalid_state: InvalidState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InvalidState
impl PartialEq for InvalidState
Source§impl Serialize for InvalidState
impl Serialize for InvalidState
impl StructuralPartialEq for InvalidState
Auto Trait Implementations§
impl Freeze for InvalidState
impl RefUnwindSafe for InvalidState
impl Send for InvalidState
impl Sync for InvalidState
impl Unpin for InvalidState
impl UnwindSafe for InvalidState
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