Skip to main content

JoinedModel

Trait JoinedModel 

Source
pub trait JoinedModel: ModelValue + Sized {
    // Required methods
    fn joined_columns() -> &'static [ColumnRef];
    fn joined_primary_keys() -> &'static [ColumnRef];
    fn joined_from_row_prefixed(
        row: &PgRow,
        prefix: &str,
    ) -> Result<Self, Error>;
    fn joined_row_has_pk(row: &PgRow, prefix: &str) -> Result<bool, Error>;
}

Required Methods§

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.

Implementors§