Trait InnerFieldType

Source
pub(super) trait InnerFieldType {
    const FIELD_TYPE: FieldType;

    // Required method
    fn to_field_value(&self) -> String;
}
Expand description

Trait to define field type and value conversion for inner field types

Required Associated Constants§

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl InnerFieldType for EditableFieldBoolean

Source§

const FIELD_TYPE: FieldType = FieldType::Boolean

Source§

fn to_field_value(&self) -> String

Source§

impl InnerFieldType for EditableFieldConcealedString

Source§

const FIELD_TYPE: FieldType = FieldType::Hidden

Source§

fn to_field_value(&self) -> String

Source§

impl InnerFieldType for EditableFieldCountryCode

Source§

const FIELD_TYPE: FieldType = FieldType::Text

Source§

fn to_field_value(&self) -> String

Source§

impl InnerFieldType for EditableFieldDate

Source§

const FIELD_TYPE: FieldType = FieldType::Text

Source§

fn to_field_value(&self) -> String

Source§

impl InnerFieldType for EditableFieldString

Source§

const FIELD_TYPE: FieldType = FieldType::Text

Source§

fn to_field_value(&self) -> String

Source§

impl InnerFieldType for EditableFieldSubdivisionCode

Source§

const FIELD_TYPE: FieldType = FieldType::Text

Source§

fn to_field_value(&self) -> String

Source§

impl InnerFieldType for EditableFieldWifiNetworkSecurityType

Source§

const FIELD_TYPE: FieldType = FieldType::Text

Source§

fn to_field_value(&self) -> String

Source§

impl InnerFieldType for EditableFieldYearMonth

Source§

const FIELD_TYPE: FieldType = FieldType::Text

Source§

fn to_field_value(&self) -> String

Implementors§