Skip to main content

require_field

Function require_field 

Source
pub fn require_field<T>(
    value: Option<T>,
    field: &str,
    tool_name: &str,
) -> Result<T>
Expand description

Extract a required value from an Option<T>, with a consistent error message referencing the field name and tool/operation name.