Trait sea_orm::TryGetableArray
source · 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
Object Safety§
This trait is not object safe.