pub fn set_string_value<'input, const BORROW: bool>(
wip: Partial<'input, BORROW>,
s: Cow<'input, str>,
span: Option<Span>,
) -> Result<Partial<'input, BORROW>, DessertError>Expand description
Set a string value, handling Option<T>, parseable types, enums, and string types.
This function handles:
Option<T>- unwraps to Some and recurses- Types with
parse_from_str(numbers, bools, etc.) - Enums - selects variant by name (externally tagged) or by discriminant (numeric)
- Transparent structs (newtypes) - recurses into inner type
- String types (
&str,Cow<str>,String)