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

pub enum FieldType {
    Hash,
    InputCheckBoxBool(bool),
    InputCheckBoxText(String),
    InputCheckBoxI32(i32),
    InputCheckBoxU32(u32),
    InputCheckBoxI64(i64),
    InputCheckBoxF64(f64),
    InputRadioText(String),
    InputRadioI32(i32),
    InputRadioU32(u32),
    InputRadioI64(i64),
    InputRadioF64(f64),
    InputColor(String),
    InputDate(String),
    InputDateTime(String),
    InputEmail(String),
    InputFile,
    InputImage,
    InputNumberI32(i32),
    InputNumberU32(u32),
    InputNumberI64(i64),
    InputNumberF64(f64),
    InputPassword(String),
    InputRangeI32(i32),
    InputRangeU32(u32),
    InputRangeI64(i64),
    InputRangeF64(f64),
    InputTel(String),
    InputText(String),
    InputUrl(String),
    InputIP(String),
    InputIPv4(String),
    InputIPv6(String),
    TextArea(String),
    SelectText(String),
    SelectI32(i32),
    SelectU32(u32),
    SelectI64(i64),
    SelectF64(f64),
    ForeignKey,
    ManyToMany,
    OneToOne,
}

Field types for Widgets

Variants

Hash
InputCheckBoxBool(bool)
InputCheckBoxText(String)
InputCheckBoxI32(i32)
InputCheckBoxU32(u32)
InputCheckBoxI64(i64)
InputCheckBoxF64(f64)
InputRadioText(String)
InputRadioI32(i32)
InputRadioU32(u32)
InputRadioI64(i64)
InputRadioF64(f64)
InputColor(String)
InputDate(String)
InputDateTime(String)
InputEmail(String)
InputFile
InputImage
InputNumberI32(i32)
InputNumberU32(u32)
InputNumberI64(i64)
InputNumberF64(f64)
InputPassword(String)
InputRangeI32(i32)
InputRangeU32(u32)
InputRangeI64(i64)
InputRangeF64(f64)
InputTel(String)
InputText(String)
InputUrl(String)
InputIP(String)
InputIPv4(String)
InputIPv6(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<'a>(&self) -> &'a str[src]

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

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

pub fn get_enum_type<'a>(&self) -> &'a 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> Instrument for T[src]

impl<T> Instrument 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>,