Skip to main content

InnerFieldType

Trait InnerFieldType 

Source
pub(super) trait InnerFieldType: Clone + Into<String> {
    // Provided method
    fn to_field_value(&self) -> String { ... }
}
Expand description

Bitwarden-side string formatting for a CXF inner field type.

Defaults to the upstream Into<String> (which produces the spec wire form), so most types only need a marker impl InnerFieldType for X {}. Override to_field_value only when the vault-facing form should differ from the wire form (e.g. WiFi security types).

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl InnerFieldType for EditableFieldBoolean

Source§

impl InnerFieldType for EditableFieldConcealedString

Source§

impl InnerFieldType for EditableFieldCountryCode

Source§

impl InnerFieldType for EditableFieldDate

Source§

impl InnerFieldType for EditableFieldEmail

Source§

impl InnerFieldType for EditableFieldNumber

Source§

impl InnerFieldType for EditableFieldString

Source§

impl InnerFieldType for EditableFieldSubdivisionCode

Source§

impl InnerFieldType for EditableFieldWifiNetworkSecurityType

Source§

impl InnerFieldType for EditableFieldYearMonth

Source§

impl InnerFieldType for UnexpectedField

Unexpected payloads share the same string-formatting contract as the expected path. Dispatch each variant through its inner InnerFieldType::to_field_value so future overrides (currently only WiFi differs from upstream’s Into<String>) apply uniformly to both paths.

Implementors§