Trait Table

Source
pub trait Table: Sized + 'static {
    type Schema;
    type Conflict;
    type UpdateOk;
    type Update;
    type Referer;
}
Expand description

This trait is implemented for all table types as generated by the crate::migration::schema macro.

You can not implement this trait yourself!

Required Associated Types§

Source

type Schema

The schema that this table is a part of.

Source

type Conflict

The type of conflict that can result from inserting a row in this table. This is the same type that is used for row updates too.

Source

type UpdateOk

The type of updates used by Transaction::update_ok.

Source

type Update

The type of updates used by Transaction::update.

Source

type Referer

The type of error when a delete fails due to a foreign key constraint.

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§