pub struct TcViolation {
pub rule: ValidationRule,
pub message: String,
}Expand description
A validation violation: which rule failed and a human-readable message.
Fields§
§rule: ValidationRuleThe rule that was violated.
message: StringA description of the problem.
Implementations§
Source§impl TcViolation
impl TcViolation
Sourcepub fn new(rule: ValidationRule, message: impl Into<String>) -> Self
pub fn new(rule: ValidationRule, message: impl Into<String>) -> Self
Create a new violation.
Trait Implementations§
Source§impl Clone for TcViolation
impl Clone for TcViolation
Source§fn clone(&self) -> TcViolation
fn clone(&self) -> TcViolation
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 TcViolation
impl Debug for TcViolation
Source§impl Display for TcViolation
impl Display for TcViolation
Source§impl PartialEq for TcViolation
impl PartialEq for TcViolation
impl Eq for TcViolation
impl StructuralPartialEq for TcViolation
Auto Trait Implementations§
impl Freeze for TcViolation
impl RefUnwindSafe for TcViolation
impl Send for TcViolation
impl Sync for TcViolation
impl Unpin for TcViolation
impl UnsafeUnpin for TcViolation
impl UnwindSafe for TcViolation
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