Skip to main content

FormFieldBuilder

Struct FormFieldBuilder 

Source
pub struct FormFieldBuilder<'a: 'b, 'b, A: Allocator + 'a> { /* private fields */ }

Implementations§

Source§

impl<'a: 'b, 'b, A: Allocator + 'a> FormFieldBuilder<'a, 'b, A>

Source

pub fn add_name(&mut self, name: WIPOffset<&'b str>)

Source

pub fn add_field_type(&mut self, field_type: FormFieldType)

Source

pub fn add_label(&mut self, label: WIPOffset<&'b str>)

Source

pub fn add_placeholder(&mut self, placeholder: WIPOffset<&'b str>)

Source

pub fn add_description(&mut self, description: WIPOffset<&'b str>)

Source

pub fn add_initial_value(&mut self, initial_value: WIPOffset<&'b str>)

Source

pub fn add_validations( &mut self, validations: WIPOffset<Vector<'b, ForwardsUOffset<ValidationRule<'b>>>>, )

Source

pub fn add_async_validations( &mut self, async_validations: WIPOffset<Vector<'b, ForwardsUOffset<AsyncValidation<'b>>>>, )

Source

pub fn add_options( &mut self, options: WIPOffset<Vector<'b, ForwardsUOffset<SelectOption<'b>>>>, )

Source

pub fn add_visible_when(&mut self, visible_when: WIPOffset<&'b str>)

Source

pub fn add_disabled_when(&mut self, disabled_when: WIPOffset<&'b str>)

Source

pub fn add_autocomplete(&mut self, autocomplete: AutocompleteHint)

Source

pub fn add_accept(&mut self, accept: WIPOffset<&'b str>)

Source

pub fn add_max_file_size(&mut self, max_file_size: u32)

Source

pub fn add_multiple(&mut self, multiple: bool)

Source

pub fn add_step(&mut self, step: f32)

Source

pub fn add_semantic_node_id(&mut self, semantic_node_id: WIPOffset<&'b str>)

Source

pub fn new( _fbb: &'b mut FlatBufferBuilder<'a, A>, ) -> FormFieldBuilder<'a, 'b, A>

Source

pub fn finish(self) -> WIPOffset<FormField<'a>>

Auto Trait Implementations§

§

impl<'a, 'b, A> Freeze for FormFieldBuilder<'a, 'b, A>

§

impl<'a, 'b, A> RefUnwindSafe for FormFieldBuilder<'a, 'b, A>
where A: RefUnwindSafe,

§

impl<'a, 'b, A> Send for FormFieldBuilder<'a, 'b, A>
where A: Send,

§

impl<'a, 'b, A> Sync for FormFieldBuilder<'a, 'b, A>
where A: Sync,

§

impl<'a, 'b, A> Unpin for FormFieldBuilder<'a, 'b, A>

§

impl<'a, 'b, A> UnsafeUnpin for FormFieldBuilder<'a, 'b, A>

§

impl<'a, 'b, A> !UnwindSafe for FormFieldBuilder<'a, 'b, A>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.