pub struct TextRestrictions {
pub languages: Option<Vec<String>>,
pub min_length: Option<u32>,
pub max_length: Option<u32>,
pub regex: Option<String>,
}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§impl Debug for TextRestrictions
impl Debug for TextRestrictions
Source§impl Default for TextRestrictions
impl Default for TextRestrictions
Source§impl<'de> Deserialize<'de> for TextRestrictions
impl<'de> Deserialize<'de> for TextRestrictions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TextRestrictions
Source§impl FromSchema for TextRestrictions
impl FromSchema for TextRestrictions
fn from_value(value: &SchemaValue) -> Result<Self, FromSchemaError>
Source§impl IntoSchema for TextRestrictions
impl IntoSchema for TextRestrictions
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl PartialEq for TextRestrictions
impl PartialEq for TextRestrictions
Source§impl Serialize for TextRestrictions
impl Serialize for TextRestrictions
impl StructuralPartialEq for TextRestrictions
Auto 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