pub trait OptionData<T> {
// Required method
fn data(self) -> Result<T>;
}Expand description
Convert Option<T> → Result<T> without panicking.
Replaces .unwrap() in query paths so a missing value returns
HTTP 500 instead of crashing the server (panic = "abort").