sea_orm::entity

Trait ActiveEnumValue

Source
pub trait ActiveEnumValue:
    Into<Value>
    + ValueType
    + Nullable
    + TryGetable {
    // Required method
    fn try_get_vec_by<I: ColIdx>(
        res: &QueryResult,
        index: I,
    ) -> Result<Vec<Self>, TryGetError>;
}
Expand description

The Rust Value backing ActiveEnums

Required Methodsยง

Source

fn try_get_vec_by<I: ColIdx>( res: &QueryResult, index: I, ) -> Result<Vec<Self>, TryGetError>

For getting an array of enum. Postgres only

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.

Implementations on Foreign Typesยง

Sourceยง

impl ActiveEnumValue for i8

Sourceยง

fn try_get_vec_by<I: ColIdx>( _res: &QueryResult, _index: I, ) -> Result<Vec<Self>, TryGetError>

Sourceยง

impl ActiveEnumValue for i16

Sourceยง

fn try_get_vec_by<I: ColIdx>( _res: &QueryResult, _index: I, ) -> Result<Vec<Self>, TryGetError>

Sourceยง

impl ActiveEnumValue for i32

Sourceยง

fn try_get_vec_by<I: ColIdx>( _res: &QueryResult, _index: I, ) -> Result<Vec<Self>, TryGetError>

Sourceยง

impl ActiveEnumValue for i64

Sourceยง

fn try_get_vec_by<I: ColIdx>( _res: &QueryResult, _index: I, ) -> Result<Vec<Self>, TryGetError>

Sourceยง

impl ActiveEnumValue for u8

Sourceยง

fn try_get_vec_by<I: ColIdx>( _res: &QueryResult, _index: I, ) -> Result<Vec<Self>, TryGetError>

Sourceยง

impl ActiveEnumValue for u16

Sourceยง

fn try_get_vec_by<I: ColIdx>( _res: &QueryResult, _index: I, ) -> Result<Vec<Self>, TryGetError>

Sourceยง

impl ActiveEnumValue for u32

Sourceยง

fn try_get_vec_by<I: ColIdx>( _res: &QueryResult, _index: I, ) -> Result<Vec<Self>, TryGetError>

Sourceยง

impl ActiveEnumValue for u64

Sourceยง

fn try_get_vec_by<I: ColIdx>( _res: &QueryResult, _index: I, ) -> Result<Vec<Self>, TryGetError>

Sourceยง

impl ActiveEnumValue for String

Sourceยง

fn try_get_vec_by<I: ColIdx>( _res: &QueryResult, _index: I, ) -> Result<Vec<Self>, TryGetError>

Implementorsยง