pub enum Locale {
Specific(String),
Multiple(Vec<String>),
Any,
}Expand description
Locale type for validation
Variants§
Specific(String)
A specific locale (e.g., “en-US”, “fr-FR”)
Multiple(Vec<String>)
Multiple locales - validates if the number matches any of them
Any
Any locale - validates against all available patterns
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Locale
impl RefUnwindSafe for Locale
impl Send for Locale
impl Sync for Locale
impl Unpin for Locale
impl UnwindSafe for Locale
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