pub enum StringLengthLocale {
MinLength(usize),
MaxLength(usize),
}Expand description
An enumeration representing the constraints for string length, either specifying a minimum length or a maximum length.
§Variants
-
MinLength(usize)Specifies the minimum length that a string is allowed to have. Theusizerepresents the minimum number of characters required. -
MaxLength(usize)Specifies the maximum length that a string is allowed to have. Theusizerepresents the maximum number of characters allowed.
Variants§
Trait Implementations§
Source§impl LocaleMessage for StringLengthLocale
impl LocaleMessage for StringLengthLocale
fn get_locale_data(&self) -> Arc<LocaleData>
Auto Trait Implementations§
impl Freeze for StringLengthLocale
impl RefUnwindSafe for StringLengthLocale
impl Send for StringLengthLocale
impl Sync for StringLengthLocale
impl Unpin for StringLengthLocale
impl UnsafeUnpin for StringLengthLocale
impl UnwindSafe for StringLengthLocale
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