pub struct TextRestrictions {
pub languages: Option<Vec<String>>,
pub min_length: Option<u32>,
pub max_length: Option<u32>,
pub regex: Option<String>,
}Expand description
— Text / Binary restrictions —
Fields§
§languages: Option<Vec<String>>Optional set of allowed BCP-47 language codes. none = unrestricted.
min_length: Option<u32>§max_length: Option<u32>§regex: Option<String>Trait Implementations§
Source§impl Clone for TextRestrictions
impl Clone for TextRestrictions
Source§fn clone(&self) -> TextRestrictions
fn clone(&self) -> TextRestrictions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TextRestrictions
impl RefUnwindSafe for TextRestrictions
impl Send for TextRestrictions
impl Sync for TextRestrictions
impl Unpin for TextRestrictions
impl UnsafeUnpin for TextRestrictions
impl UnwindSafe for TextRestrictions
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