#[repr(C)]pub struct ComponentDataField {
pub name: AzString,
pub field_type: ComponentFieldType,
pub default_value: OptionComponentDefaultValue,
pub required: bool,
pub description: AzString,
}Expand description
A field in the component’s internal data model.
Fields§
§name: AzStringField name, e.g. “counter”, “text”, “number”
field_type: ComponentFieldTypeRich type descriptor for this field
default_value: OptionComponentDefaultValueTyped default value, or None if the field is required
required: boolWhether this field is required (must be provided by the parent)
description: AzStringHuman-readable description
Trait Implementations§
Source§impl Clone for ComponentDataField
impl Clone for ComponentDataField
Source§fn clone(&self) -> ComponentDataField
fn clone(&self) -> ComponentDataField
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 ComponentDataField
impl Debug for ComponentDataField
Source§impl FromIterator<ComponentDataField> for ComponentDataFieldVec
impl FromIterator<ComponentDataField> for ComponentDataFieldVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ComponentDataField>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ComponentDataField>,
Creates a value from an iterator. Read more
Source§impl PartialEq for ComponentDataField
impl PartialEq for ComponentDataField
Source§fn eq(&self, other: &ComponentDataField) -> bool
fn eq(&self, other: &ComponentDataField) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComponentDataField
Auto Trait Implementations§
impl Freeze for ComponentDataField
impl RefUnwindSafe for ComponentDataField
impl !Send for ComponentDataField
impl !Sync for ComponentDataField
impl Unpin for ComponentDataField
impl UnsafeUnpin for ComponentDataField
impl UnwindSafe for ComponentDataField
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