trait IntoField<T> {
// Required method
fn into_field(self) -> T;
}Expand description
Trait to convert CLI field types to target struct field types.
This enables Option<SecretString> (CLI) -> SecretString (target) conversions,
allowing us to distinguish “not provided” from “provided but empty”.
Required Methods§
fn into_field(self) -> T
Implementations on Foreign Types§
Source§impl IntoField<SecretBox<String>> for Option<SecretString>
Convert Option<SecretString> to SecretString, using default for None.
impl IntoField<SecretBox<String>> for Option<SecretString>
Convert Option<SecretString> to SecretString, using default for None.