Trait ActiveEnumValue

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

The Rust Value backing ActiveEnums

Required Methods§

Source

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

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>( _res: &QueryResult, _index: I, ) -> Result<Vec<i8>, TryGetError>
where I: ColIdx,

Source§

impl ActiveEnumValue for i16

Source§

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

Source§

impl ActiveEnumValue for i32

Source§

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

Source§

impl ActiveEnumValue for i64

Source§

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

Source§

impl ActiveEnumValue for u8

Source§

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

Source§

impl ActiveEnumValue for u16

Source§

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

Source§

impl ActiveEnumValue for u32

Source§

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

Source§

impl ActiveEnumValue for u64

Source§

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

Source§

impl ActiveEnumValue for String

Source§

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

Implementors§