[][src]Trait amadeus::prelude::postgres::PostgresData

pub trait PostgresData: Clone + PartialEq<Self> + Debug + 'static {
    fn query(f: &mut Formatter, name: Option<&Names>) -> Result<(), Error>;
fn decode(
        type_: &Type,
        buf: Option<&[u8]>
    ) -> Result<Self, Box<dyn Error + 'static + Send + Sync>>; }

Required methods

fn query(f: &mut Formatter, name: Option<&Names>) -> Result<(), Error>

fn decode(
    type_: &Type,
    buf: Option<&[u8]>
) -> Result<Self, Box<dyn Error + 'static + Send + Sync>>

Loading content...

Implementations on Foreign Types

impl<A> PostgresData for (A,) where
    A: PostgresData
[src]

impl PostgresData for Box<[u8; 7]>[src]

impl PostgresData for [u8; 9][src]

impl PostgresData for [u8; 8][src]

impl PostgresData for [u8; 2][src]

impl PostgresData for [u8; 6][src]

impl PostgresData for [u8; 17][src]

impl PostgresData for i8[src]

impl PostgresData for Box<[u8; 15]>[src]

impl PostgresData for [u8; 30][src]

impl<A, B, C, D, E, F> PostgresData for (A, B, C, D, E, F) where
    A: PostgresData,
    B: PostgresData,
    C: PostgresData,
    D: PostgresData,
    E: PostgresData,
    F: PostgresData
[src]

impl PostgresData for f64[src]

impl PostgresData for [u8; 0][src]

impl PostgresData for Box<[u8; 3]>[src]

impl PostgresData for Box<[u8; 30]>[src]

impl PostgresData for u16[src]

impl PostgresData for Box<[u8; 25]>[src]

impl<A, B, C, D, E> PostgresData for (A, B, C, D, E) where
    A: PostgresData,
    B: PostgresData,
    C: PostgresData,
    D: PostgresData,
    E: PostgresData
[src]

impl PostgresData for [u8; 32][src]

impl PostgresData for i64[src]

impl PostgresData for Box<[u8; 21]>[src]

impl PostgresData for [u8; 11][src]

impl PostgresData for Box<[u8; 23]>[src]

impl PostgresData for [u8; 12][src]

impl<T> PostgresData for Option<T> where
    T: PostgresData
[src]

impl PostgresData for Box<[u8; 4]>[src]

impl PostgresData for Box<[u8; 9]>[src]

impl PostgresData for Box<[u8; 31]>[src]

impl<T> PostgresData for Box<T> where
    T: PostgresData
[src]

impl<A, B> PostgresData for (A, B) where
    A: PostgresData,
    B: PostgresData
[src]

impl PostgresData for Box<[u8; 29]>[src]

impl<A, B, C, D, E, F, G, H, I, J> PostgresData for (A, B, C, D, E, F, G, H, I, J) where
    A: PostgresData,
    B: PostgresData,
    C: PostgresData,
    D: PostgresData,
    E: PostgresData,
    F: PostgresData,
    G: PostgresData,
    H: PostgresData,
    I: PostgresData,
    J: PostgresData
[src]

impl PostgresData for [u8; 3][src]

impl PostgresData for Box<[u8; 5]>[src]

impl PostgresData for [u8; 23][src]

impl PostgresData for [u8; 28][src]

impl PostgresData for [u8; 18][src]

impl PostgresData for Box<[u8; 10]>[src]

impl PostgresData for [u8; 1][src]

impl PostgresData for Box<[u8; 6]>[src]

impl PostgresData for Box<[u8; 27]>[src]

impl PostgresData for Box<[u8; 24]>[src]

impl PostgresData for Box<[u8; 14]>[src]

impl PostgresData for Box<[u8; 16]>[src]

impl PostgresData for Box<[u8; 32]>[src]

impl PostgresData for [u8; 29][src]

impl PostgresData for i16[src]

impl PostgresData for u64[src]

impl PostgresData for Box<[u8; 28]>[src]

impl PostgresData for Box<[u8; 20]>[src]

impl PostgresData for Vec<u8>[src]

impl PostgresData for [u8; 26][src]

impl PostgresData for Box<[u8; 26]>[src]

impl PostgresData for [u8; 14][src]

impl PostgresData for [u8; 22][src]

impl PostgresData for Box<[u8; 1]>[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L> PostgresData for (A, B, C, D, E, F, G, H, I, J, K, L) where
    A: PostgresData,
    B: PostgresData,
    C: PostgresData,
    D: PostgresData,
    E: PostgresData,
    F: PostgresData,
    G: PostgresData,
    H: PostgresData,
    I: PostgresData,
    J: PostgresData,
    K: PostgresData,
    L: PostgresData
[src]

impl PostgresData for u8[src]

impl PostgresData for Box<[u8; 22]>[src]

impl<A, B, C, D, E, F, G, H, I, J, K> PostgresData for (A, B, C, D, E, F, G, H, I, J, K) where
    A: PostgresData,
    B: PostgresData,
    C: PostgresData,
    D: PostgresData,
    E: PostgresData,
    F: PostgresData,
    G: PostgresData,
    H: PostgresData,
    I: PostgresData,
    J: PostgresData,
    K: PostgresData
[src]

impl PostgresData for [u8; 5][src]

impl PostgresData for [u8; 31][src]

impl<A, B, C, D, E, F, G> PostgresData for (A, B, C, D, E, F, G) where
    A: PostgresData,
    B: PostgresData,
    C: PostgresData,
    D: PostgresData,
    E: PostgresData,
    F: PostgresData,
    G: PostgresData
[src]

impl PostgresData for u32[src]

impl PostgresData for [u8; 25][src]

impl PostgresData for Box<[u8; 8]>[src]

impl PostgresData for [u8; 20][src]

impl PostgresData for [u8; 24][src]

impl<A, B, C, D> PostgresData for (A, B, C, D) where
    A: PostgresData,
    B: PostgresData,
    C: PostgresData,
    D: PostgresData
[src]

impl PostgresData for Box<[u8; 19]>[src]

impl PostgresData for Box<[u8; 11]>[src]

impl PostgresData for String[src]

impl PostgresData for [u8; 16][src]

impl<A, B, C> PostgresData for (A, B, C) where
    A: PostgresData,
    B: PostgresData,
    C: PostgresData
[src]

impl PostgresData for [u8; 4][src]

impl PostgresData for Box<[u8; 18]>[src]

impl PostgresData for Box<[u8; 17]>[src]

impl PostgresData for [u8; 21][src]

impl PostgresData for [u8; 27][src]

impl PostgresData for [u8; 15][src]

impl PostgresData for [u8; 7][src]

impl PostgresData for [u8; 10][src]

impl PostgresData for Box<[u8; 12]>[src]

impl PostgresData for Box<[u8; 13]>[src]

impl PostgresData for [u8; 13][src]

impl PostgresData for Box<[u8; 2]>[src]

impl PostgresData for f32[src]

impl PostgresData for ()[src]

impl<A, B, C, D, E, F, G, H, I> PostgresData for (A, B, C, D, E, F, G, H, I) where
    A: PostgresData,
    B: PostgresData,
    C: PostgresData,
    D: PostgresData,
    E: PostgresData,
    F: PostgresData,
    G: PostgresData,
    H: PostgresData,
    I: PostgresData
[src]

impl PostgresData for Box<[u8; 0]>[src]

impl<A, B, C, D, E, F, G, H> PostgresData for (A, B, C, D, E, F, G, H) where
    A: PostgresData,
    B: PostgresData,
    C: PostgresData,
    D: PostgresData,
    E: PostgresData,
    F: PostgresData,
    G: PostgresData,
    H: PostgresData
[src]

impl PostgresData for bool[src]

impl PostgresData for i32[src]

impl PostgresData for [u8; 19][src]

Loading content...

Implementors

impl PostgresData for Decimal[src]

impl PostgresData for IpAddr[src]

impl PostgresData for Value[src]

impl PostgresData for Bson[src]

impl PostgresData for CloudfrontRow[src]

impl PostgresData for Date[src]

impl PostgresData for DateTime[src]

impl PostgresData for DateTimeWithoutTimezone[src]

impl PostgresData for DateWithoutTimezone[src]

impl PostgresData for Enum[src]

impl PostgresData for Group[src]

impl PostgresData for Json[src]

impl PostgresData for Time[src]

impl PostgresData for TimeWithoutTimezone[src]

impl PostgresData for Timezone[src]

impl PostgresData for Url[src]

impl PostgresData for Webpage<'static>[src]

impl<K, V> PostgresData for Map<K, V> where
    K: Hash + Eq + PostgresData,
    V: PostgresData
[src]

impl<T> PostgresData for List<T> where
    T: PostgresData
[src]

Loading content...