pub struct FormControlConstraints {
pub required: bool,
pub read_only: bool,
pub disabled: bool,
pub pattern: Option<String>,
pub min_length: Option<u32>,
pub max_length: Option<u32>,
pub min: Option<String>,
pub max: Option<String>,
pub step: Option<String>,
pub multiple: bool,
pub accept: Vec<String>,
}Fields§
§required: bool§read_only: bool§disabled: bool§pattern: Option<String>§min_length: Option<u32>§max_length: Option<u32>§min: Option<String>§max: Option<String>§step: Option<String>§multiple: bool§accept: Vec<String>Implementations§
Source§impl FormControlConstraints
impl FormControlConstraints
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
True when the control carries no interesting constraint: an agent
reading required/readOnly/disabled as absent can assume defaults.
Trait Implementations§
Source§impl Clone for FormControlConstraints
impl Clone for FormControlConstraints
Source§impl Debug for FormControlConstraints
impl Debug for FormControlConstraints
Source§impl Default for FormControlConstraints
impl Default for FormControlConstraints
Source§impl<'de> Deserialize<'de> for FormControlConstraintswhere
FormControlConstraints: Default,
impl<'de> Deserialize<'de> for FormControlConstraintswhere
FormControlConstraints: Default,
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 FormControlConstraints
Source§impl PartialEq for FormControlConstraints
impl PartialEq for FormControlConstraints
Source§impl Serialize for FormControlConstraints
impl Serialize for FormControlConstraints
impl StructuralPartialEq for FormControlConstraints
Auto Trait Implementations§
impl Freeze for FormControlConstraints
impl RefUnwindSafe for FormControlConstraints
impl Send for FormControlConstraints
impl Sync for FormControlConstraints
impl Unpin for FormControlConstraints
impl UnsafeUnpin for FormControlConstraints
impl UnwindSafe for FormControlConstraints
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