Skip to main content

Partial

Trait Partial 

Source
pub trait Partial: FromRow {
    type Model: Model;

    // Required method
    fn columns() -> &'static [&'static str];
}
Expand description

Implemented by #[derive(Partial)] — a subset of a model’s columns, read with QueryBuilder::select_as::<P>().

Required Associated Types§

Required Methods§

Source

fn columns() -> &'static [&'static str]

Column names to select, taken from the model’s typed column constants.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§