pub type ExtrResult<T> = FromSqlResult<T>;
Type alias for the outcome of extracting a value from a Row.
Row
/// `#[extr]` function used to convert an SQL string to a PathBuf. pub fn extr_path(value: &ValueRef) -> ExtrResult<PathBuf> { let path = value.as_str()?; let path = PathBuf::from(path); Ok(path) }
enum ExtrResult<T> { Ok(T), Err(FromSqlError), }
Contains the success value
Contains the error value