pub trait TryGetable {
fn try_get(
res: &QueryResult,
pre: &str,
col: &str
) -> Result<Self, TryGetError>;
}
Expand description
Constrain any type trying to get a Row in a database
Required methods
fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
Ensure the type implements this method