Trait TryGetableArray
pub trait TryGetableArray: Sized {
// Required method
fn try_get_by<I>(
res: &QueryResult,
index: I,
) -> Result<Vec<Self>, TryGetError>
where I: ColIdx;
}Expand description
An interface to get an array of values from the query result.
A type can only implement ActiveEnum or TryGetableFromJson, but not both.
A blanket impl is provided for TryGetableFromJson, while the impl for ActiveEnum
is provided by the DeriveActiveEnum macro. So as an end user you won’t normally
touch this trait.
Required Methods§
fn try_get_by<I>(res: &QueryResult, index: I) -> Result<Vec<Self>, TryGetError>where
I: ColIdx,
fn try_get_by<I>(res: &QueryResult, index: I) -> Result<Vec<Self>, TryGetError>where
I: ColIdx,
Just a delegate
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.