pub struct FacetViolation {
pub facet_name: &'static str,
pub detail: String,
}Expand description
Returned by Facet::check when a facet rejects a value.
Fields§
§facet_name: &'static str§detail: StringTrait Implementations§
Source§impl Clone for FacetViolation
impl Clone for FacetViolation
Source§fn clone(&self) -> FacetViolation
fn clone(&self) -> FacetViolation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FacetViolation
impl RefUnwindSafe for FacetViolation
impl Send for FacetViolation
impl Sync for FacetViolation
impl Unpin for FacetViolation
impl UnsafeUnpin for FacetViolation
impl UnwindSafe for FacetViolation
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