#[non_exhaustive]pub struct RuleWords {
pub required: String,
pub too_low: String,
pub too_high: String,
pub invalid: String,
pub comparison: String,
pub record: String,
pub must_be_true: String,
pub duplicate: String,
pub none_exists: String,
pub not_referenced: String,
pub decimal: char,
}Expand description
The words of what fails, where {0} is the name of the field.
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.required: String§too_low: StringRuleKind::Range, below the limit, where {1} is the limit.
too_high: StringRuleKind::Range, above the limit, where {1} is the limit.
invalid: String§comparison: String§record: StringRuleKind::Criteria and RuleKind::Custom, with no field.
must_be_true: String§duplicate: String§none_exists: String§not_referenced: String§decimal: charBefore decimals, where a message shows money.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuleWords
impl RefUnwindSafe for RuleWords
impl Send for RuleWords
impl Sync for RuleWords
impl Unpin for RuleWords
impl UnsafeUnpin for RuleWords
impl UnwindSafe for RuleWords
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