Impl TryGetableMany for (T)

This commit is contained in:
Muhannad Alrusayni 2021-09-27 12:47:14 +03:00
parent c12e0cd44e
commit 7742eb2cec

View File

@ -314,6 +314,15 @@ where
} }
} }
impl<T> TryGetableMany for (T,)
where
T: TryGetableMany,
{
fn try_get_many(res: &QueryResult, pre: &str, cols: &[String]) -> Result<Self, TryGetError> {
T::try_get_many(res, pre, cols).map(|r| (r,))
}
}
impl<A, B> TryGetableMany for (A, B) impl<A, B> TryGetableMany for (A, B)
where where
A: TryGetable, A: TryGetable,