pub struct RefineRejection {
pub code: Option<IssueCode>,
pub message: Cow<'static, str>,
pub params: IssueParams,
}Expand description
Rejection data returned by a rule; the owning kernel handles paths, accumulation and fail-fast policy.
Fields§
§code: Option<IssueCode>None maps to IssueCode::Refine, which every rule shares. Carry
an IssueCode::Custom instead to keep several custom rules
distinguishable by code alone.
message: Cow<'static, str>Human-readable rejection message.
params: IssueParamsOrdered structured parameters.
Trait Implementations§
Source§impl Clone for RefineRejection
impl Clone for RefineRejection
Source§impl Debug for RefineRejection
impl Debug for RefineRejection
Source§impl PartialEq for RefineRejection
impl PartialEq for RefineRejection
impl StructuralPartialEq for RefineRejection
Auto Trait Implementations§
impl Freeze for RefineRejection
impl RefUnwindSafe for RefineRejection
impl Send for RefineRejection
impl Sync for RefineRejection
impl Unpin for RefineRejection
impl UnsafeUnpin for RefineRejection
impl UnwindSafe for RefineRejection
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