Skip to main content

PartialModelTrait

Trait PartialModelTrait 

Source
pub trait PartialModelTrait: FromQueryResult {
    // Required method
    fn select_cols(select: Select) -> Select;
}
Expand description

A projection struct that selects its own columns.

Required Methods§

Source

fn select_cols(select: Select) -> Select

Adds to select, whose select list has been cleared, one aliased item per field, named after the field so that decoding finds it.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§