pub struct FieldMetaValues {
pub id: Option<Rc<str>>,
pub name: Option<Rc<str>>,
pub required: bool,
pub disabled: bool,
pub invalid: Option<bool>,
pub errors: Vec<Rc<str>>,
pub touched: bool,
pub dirty: bool,
}Expand description
Initial presentation metadata for one field-shaped value.
invalid: None derives invalidity from whether errors is empty. Setting it to Some keeps
invalidity independently controlled by the metadata producer.
Fields§
§id: Option<Rc<str>>The rendered control’s element id.
name: Option<Rc<str>>The rendered control’s name.
required: boolWhether the field is required according to its producer.
disabled: boolWhether the field is disabled according to its producer.
invalid: Option<bool>An explicit invalid state, or None to derive it from errors.
errors: Vec<Rc<str>>Pre-rendered error text.
touched: boolWhether the field is touched according to its producer.
dirty: boolWhether the field is dirty according to its producer.
Trait Implementations§
Source§impl Clone for FieldMetaValues
impl Clone for FieldMetaValues
Source§fn clone(&self) -> FieldMetaValues
fn clone(&self) -> FieldMetaValues
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 moreSource§impl Debug for FieldMetaValues
impl Debug for FieldMetaValues
Source§impl Default for FieldMetaValues
impl Default for FieldMetaValues
Source§fn default() -> FieldMetaValues
fn default() -> FieldMetaValues
Returns the “default value” for a type. Read more
impl Eq for FieldMetaValues
Source§impl PartialEq for FieldMetaValues
impl PartialEq for FieldMetaValues
impl StructuralPartialEq for FieldMetaValues
Auto Trait Implementations§
impl !Send for FieldMetaValues
impl !Sync for FieldMetaValues
impl Freeze for FieldMetaValues
impl RefUnwindSafe for FieldMetaValues
impl Unpin for FieldMetaValues
impl UnsafeUnpin for FieldMetaValues
impl UnwindSafe for FieldMetaValues
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DependencyElement for T
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.