zino_dioxus::form

Trait DataEntry

Source
pub trait DataEntry {
    // Required methods
    fn key(&self) -> Cow<'_, str>;
    fn value(&self) -> Cow<'_, str>;
    fn label(&self) -> Cow<'_, str>;
}
Expand description

An interface for the data entries.

Required Methods§

Source

fn key(&self) -> Cow<'_, str>

Returns the unique key.

Source

fn value(&self) -> Cow<'_, str>

Returns the value.

Source

fn label(&self) -> Cow<'_, str>

Returns the label.

Implementations on Foreign Types§

Source§

impl DataEntry for [&str; 2]

Source§

fn key(&self) -> Cow<'_, str>

Source§

fn value(&self) -> Cow<'_, str>

Source§

fn label(&self) -> Cow<'_, str>

Source§

impl<T: ToString, U: ToString> DataEntry for (T, U)

Source§

fn key(&self) -> Cow<'_, str>

Source§

fn value(&self) -> Cow<'_, str>

Source§

fn label(&self) -> Cow<'_, str>

Implementors§