Skip to main content

PrimaryKey

Trait PrimaryKey 

Source
pub trait PrimaryKey:
    ToColumn
    + Send
    + Sync
    + Sealed { }
Available on crate features model-mysql or model-postgres or model-sqlite only.
Expand description

A type ModelRepository can key rows by: i64, i32, String or Uuid (18.30.0). Sealed — these are the types Repository is implemented for.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl PrimaryKey for String

Source§

impl PrimaryKey for i32

Source§

impl PrimaryKey for i64

Implementors§