Skip to main content

IdentityOf

Trait IdentityOf 

Source
pub trait IdentityOf<E>
where E: EntityTrait,
{ // Required method fn identity_of(self) -> Identity; }
Expand description

Conversion into an Identity whose columns are guaranteed to belong to entity E. Used by RelationBuilder::from / to so the type system enforces that relation columns reference the right table.

Required Methodsยง

Source

fn identity_of(self) -> Identity

Build the Identity.

Dyn Compatibilityยง

This trait is dyn compatible.

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

Implementations on Foreign Typesยง

Sourceยง

impl<E, C> IdentityOf<E> for (C, C)
where E: EntityTrait<Column = C>, C: ColumnTrait,

Sourceยง

impl<E, C> IdentityOf<E> for (C, C, C)
where E: EntityTrait<Column = C>, C: ColumnTrait,

Sourceยง

impl<E, C> IdentityOf<E> for (C, C, C, C)
where E: EntityTrait<Column = C>, C: ColumnTrait,

Sourceยง

impl<E, C> IdentityOf<E> for (C, C, C, C, C)
where E: EntityTrait<Column = C>, C: ColumnTrait,

Sourceยง

impl<E, C> IdentityOf<E> for (C, C, C, C, C, C)
where E: EntityTrait<Column = C>, C: ColumnTrait,

Sourceยง

impl<E, C> IdentityOf<E> for (C, C, C, C, C, C, C)
where E: EntityTrait<Column = C>, C: ColumnTrait,

Sourceยง

impl<E, C> IdentityOf<E> for (C, C, C, C, C, C, C, C)
where E: EntityTrait<Column = C>, C: ColumnTrait,

Sourceยง

impl<E, C> IdentityOf<E> for (C, C, C, C, C, C, C, C, C)
where E: EntityTrait<Column = C>, C: ColumnTrait,

Sourceยง

impl<E, C> IdentityOf<E> for (C, C, C, C, C, C, C, C, C, C)
where E: EntityTrait<Column = C>, C: ColumnTrait,

Sourceยง

impl<E, C> IdentityOf<E> for (C, C, C, C, C, C, C, C, C, C, C)
where E: EntityTrait<Column = C>, C: ColumnTrait,

Sourceยง

impl<E, C> IdentityOf<E> for (C, C, C, C, C, C, C, C, C, C, C, C)
where E: EntityTrait<Column = C>, C: ColumnTrait,

Implementorsยง

Sourceยง

impl<E, C> IdentityOf<E> for C
where E: EntityTrait<Column = C>, C: ColumnTrait,