Skip to main content

PrimaryKey

Trait PrimaryKey 

Source
pub trait PrimaryKey:
    Sealed
    + Copy
    + Eq { }
Expand description

Supported supplied primary key: integers, U256, Ulid, Principal, Account or Subaccount. This sealed boundary keeps lookup/delete/page arguments typed to their entity.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl PrimaryKey for i8

Source§

impl PrimaryKey for i16

Source§

impl PrimaryKey for i32

Source§

impl PrimaryKey for i64

Source§

impl PrimaryKey for i128

Source§

impl PrimaryKey for u8

Source§

impl PrimaryKey for u16

Source§

impl PrimaryKey for u32

Source§

impl PrimaryKey for u64

Source§

impl PrimaryKey for u128

Implementors§