#[non_exhaustive]pub struct CustomFileViolation {
pub file_info: FileInfo,
pub message: String,
pub is_negated: bool,
}Expand description
One selected file that disagrees with a user-defined predicate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.file_info: FileInfoThe immutable file facts supplied to the predicate.
message: StringThe user’s description of the predicate requirement.
is_negated: boolWhether satisfying the predicate was forbidden rather than required.
Implementations§
Trait Implementations§
Source§impl Clone for CustomFileViolation
impl Clone for CustomFileViolation
Source§fn clone(&self) -> CustomFileViolation
fn clone(&self) -> CustomFileViolation
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 CustomFileViolation
impl Debug for CustomFileViolation
Source§impl From<CustomFileViolation> for Violation
impl From<CustomFileViolation> for Violation
Source§fn from(violation: CustomFileViolation) -> Self
fn from(violation: CustomFileViolation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CustomFileViolation
impl PartialEq for CustomFileViolation
impl Eq for CustomFileViolation
impl StructuralPartialEq for CustomFileViolation
Auto Trait Implementations§
impl Freeze for CustomFileViolation
impl RefUnwindSafe for CustomFileViolation
impl Send for CustomFileViolation
impl Sync for CustomFileViolation
impl Unpin for CustomFileViolation
impl UnwindSafe for CustomFileViolation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.