Skip to main content

Source

Trait Source 

Source
pub trait Source:
    Sized
    + Send
    + 'static {
    type Base: Aggregate;

    // Required methods
    fn columns() -> Vec<Selected>;
    fn column_types() -> Vec<Option<SqlType>>;
    fn decode(row: &mut dyn ColumnReader) -> Result<Self>;
}

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<A: Aggregate> Source for A

Source§

type Base = A