pub type BindResult = Result<ToSqlOutput<'static>>;Expand description
Type alias for the outcome of converting a value to an SQL-friendly representation.
Note that the lifetime parameter is explicitly fixed as 'static for the benefit of Model::to_params.
§Example
/// `#[bind]` function used to convert a PathBuf to an SQL-friendly representation.
pub fn bind_path(value: &Path) -> BindResult {
let str = value.to_string_lossy().into_owned();
Ok(ToSqlOutput::Owned(
Value::Text(str)
))
}Aliased Type§
enum BindResult {
Ok(ToSqlOutput<'static>),
Err(Error),
}