[][src]Enum mango_orm::widgets::FieldType

pub enum FieldType {
    InputCheckBox(bool),
    InputColor(String),
    InputDate(String),
    InputDateTime(String),
    InputEmail(String),
    InputFile,
    InputImage,
    InputNumberI32(i32),
    InputNumberU32(u32),
    InputNumberI64(i64),
    InputNumberF64(f64),
    InputPassword(String),
    InputRadio(bool),
    InputRangeI32(i32),
    InputRangeU32(u32),
    InputRangeI64(i64),
    InputRangeF64(f64),
    InputTel(String),
    InputText(String),
    InputUrl(String),
    TextArea(String),
    SelectText(String),
    SelectI32(i32),
    SelectU32(u32),
    SelectI64(i64),
    SelectF64(f64),
    ForeignKey,
    ManyToMany,
    OneToOne,
}

Field types for Widgets

Variants

InputCheckBox(bool)
InputColor(String)
InputDate(String)
InputDateTime(String)
InputEmail(String)
InputFile
InputImage
InputNumberI32(i32)
InputNumberU32(u32)
InputNumberI64(i64)
InputNumberF64(f64)
InputPassword(String)
InputRadio(bool)
InputRangeI32(i32)
InputRangeU32(u32)
InputRangeI64(i64)
InputRangeF64(f64)
InputTel(String)
InputText(String)
InputUrl(String)
TextArea(String)
SelectText(String)
SelectI32(i32)
SelectU32(u32)
SelectI64(i64)
SelectF64(f64)
ForeignKey
ManyToMany
OneToOne

Implementations

impl FieldType[src]

pub fn get_input_type(&self) -> &'static str[src]

pub fn get_raw_data(&self) -> String[src]

pub fn get_data_type(&self) -> &'static str[src]

Trait Implementations

impl Clone for FieldType[src]

impl Debug for FieldType[src]

impl Default for FieldType[src]

impl PartialEq<FieldType> for FieldType[src]

impl StructuralPartialEq for FieldType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,