pub struct RebuildAttempt {
pub validator: &'static str,
pub target_state: &'static str,
pub matched: bool,
pub reason_key: Option<&'static str>,
pub message: Option<Cow<'static, str>>,
}Expand description
One validator evaluation recorded during typed rehydration.
Fields§
§validator: &'static strRust method name of the validator that ran.
target_state: &'static strRust state-marker name the validator was checking.
matched: boolWhether this validator matched and produced the rebuilt state.
reason_key: Option<&'static str>Stable machine-readable rejection key, when the validator exposed one.
message: Option<Cow<'static, str>>Optional human-readable rejection message, when the validator exposed one.
Trait Implementations§
Source§impl Clone for RebuildAttempt
impl Clone for RebuildAttempt
Source§fn clone(&self) -> RebuildAttempt
fn clone(&self) -> RebuildAttempt
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 RebuildAttempt
impl Debug for RebuildAttempt
Source§impl PartialEq for RebuildAttempt
impl PartialEq for RebuildAttempt
impl Eq for RebuildAttempt
impl StructuralPartialEq for RebuildAttempt
Auto Trait Implementations§
impl Freeze for RebuildAttempt
impl RefUnwindSafe for RebuildAttempt
impl Send for RebuildAttempt
impl Sync for RebuildAttempt
impl Unpin for RebuildAttempt
impl UnsafeUnpin for RebuildAttempt
impl UnwindSafe for RebuildAttempt
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