Trait EditableFieldToField

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

    // Required methods
    fn field_value(&self) -> String;
    fn label(&self) -> &Option<String>;
}
Expand description

Trait to convert CXP EditableField types to Bitwarden Field values and types

Required Associated Constants§

Required Methods§

Source

fn field_value(&self) -> String

Source

fn label(&self) -> &Option<String>

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<T> EditableFieldToField for EditableField<T>
where T: InnerFieldType,

Source§

const FIELD_TYPE: FieldType = T::FIELD_TYPE

Source§

fn field_value(&self) -> String

Source§

fn label(&self) -> &Option<String>

Implementors§