pub(super) fn create_field<T>(
field: &EditableField<T>,
overridden_name: Option<impl Into<String>>,
) -> Fieldwhere
T: InnerFieldType + CxfEditableFieldType,Expand description
Convert a CXF [EditableField] into a Bitwarden Field.
The Bitwarden FieldType is derived from the value’s runtime CXF type rather than from the
statically-expected T, so an unexpected payload (e.g. a boolean where we expected a
string) reports the type that actually arrived — keeping the resulting Field coherent.