QueryRelationField

Trait QueryRelationField 

Source
pub trait QueryRelationField: Expression {
    type QueryRelation: QueryRelation;

    const NAME: &'static str;
}
Expand description

A field on a database relation. Types which implement this trait should have been generated by the table! macro or the [view! macro](crate::view!

Required Associated Constants§

Source

const NAME: &'static str

The name of this field

Required Associated Types§

Source

type QueryRelation: QueryRelation

The query relation which this field belongs to

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§

Source§

impl<C> QueryRelationField for C
where C: Column,

Source§

const NAME: &'static str = <C as Column>::NAME

Source§

type QueryRelation = <C as Column>::Table