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§
fn to_field_value(&self) -> String
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
impl InnerFieldType for EditableFieldBoolean
impl InnerFieldType for EditableFieldConcealedString
impl InnerFieldType for EditableFieldCountryCode
impl InnerFieldType for EditableFieldDate
impl InnerFieldType for EditableFieldEmail
impl InnerFieldType for EditableFieldNumber
impl InnerFieldType for EditableFieldString
impl InnerFieldType for EditableFieldSubdivisionCode
Source§impl InnerFieldType for EditableFieldWifiNetworkSecurityType
impl InnerFieldType for EditableFieldWifiNetworkSecurityType
fn to_field_value(&self) -> String
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.
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.