pub trait TryGetableArray: Sized {
// Required method
fn try_get_by<I: ColIdx>(
res: &QueryResult,
index: I,
) -> Result<Vec<Self>, TryGetError>;
}
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§
Sourcefn try_get_by<I: ColIdx>(
res: &QueryResult,
index: I,
) -> Result<Vec<Self>, TryGetError>
fn try_get_by<I: ColIdx>( res: &QueryResult, index: I, ) -> Result<Vec<Self>, TryGetError>
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.