sea_orm::entity

Trait PrimaryKeyArity

Source
pub trait PrimaryKeyArity {
    const ARITY: usize;
}
Expand description

How many columns this Primary Key comprises

Required Associated Constantsยง

Source

const ARITY: usize

Arity of the Primary Key

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.

Implementations on Foreign Typesยง

Sourceยง

impl<T1: TryGetableMany> PrimaryKeyArity for (T1,)

Sourceยง

const ARITY: usize = 1usize

Sourceยง

impl<T1: TryGetableMany, T2: TryGetableMany> PrimaryKeyArity for (T1, T2)

Sourceยง

const ARITY: usize = 2usize

Sourceยง

impl<T1: TryGetableMany, T2: TryGetableMany, T3: TryGetableMany> PrimaryKeyArity for (T1, T2, T3)

Sourceยง

const ARITY: usize = 3usize

Sourceยง

impl<T1: TryGetableMany, T2: TryGetableMany, T3: TryGetableMany, T4: TryGetableMany> PrimaryKeyArity for (T1, T2, T3, T4)

Sourceยง

const ARITY: usize = 4usize

Sourceยง

impl<T1: TryGetableMany, T2: TryGetableMany, T3: TryGetableMany, T4: TryGetableMany, T5: TryGetableMany> PrimaryKeyArity for (T1, T2, T3, T4, T5)

Sourceยง

const ARITY: usize = 5usize

Sourceยง

impl<T1: TryGetableMany, T2: TryGetableMany, T3: TryGetableMany, T4: TryGetableMany, T5: TryGetableMany, T6: TryGetableMany> PrimaryKeyArity for (T1, T2, T3, T4, T5, T6)

Sourceยง

const ARITY: usize = 6usize

Sourceยง

impl<T1: TryGetableMany, T2: TryGetableMany, T3: TryGetableMany, T4: TryGetableMany, T5: TryGetableMany, T6: TryGetableMany, T7: TryGetableMany> PrimaryKeyArity for (T1, T2, T3, T4, T5, T6, T7)

Sourceยง

const ARITY: usize = 7usize

Sourceยง

impl<T1: TryGetableMany, T2: TryGetableMany, T3: TryGetableMany, T4: TryGetableMany, T5: TryGetableMany, T6: TryGetableMany, T7: TryGetableMany, T8: TryGetableMany> PrimaryKeyArity for (T1, T2, T3, T4, T5, T6, T7, T8)

Sourceยง

const ARITY: usize = 8usize

Sourceยง

impl<T1: TryGetableMany, T2: TryGetableMany, T3: TryGetableMany, T4: TryGetableMany, T5: TryGetableMany, T6: TryGetableMany, T7: TryGetableMany, T8: TryGetableMany, T9: TryGetableMany> PrimaryKeyArity for (T1, T2, T3, T4, T5, T6, T7, T8, T9)

Sourceยง

const ARITY: usize = 9usize

Sourceยง

impl<T1: TryGetableMany, T2: TryGetableMany, T3: TryGetableMany, T4: TryGetableMany, T5: TryGetableMany, T6: TryGetableMany, T7: TryGetableMany, T8: TryGetableMany, T9: TryGetableMany, T10: TryGetableMany> PrimaryKeyArity for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

Sourceยง

const ARITY: usize = 10usize

Sourceยง

impl<T1: TryGetableMany, T2: TryGetableMany, T3: TryGetableMany, T4: TryGetableMany, T5: TryGetableMany, T6: TryGetableMany, T7: TryGetableMany, T8: TryGetableMany, T9: TryGetableMany, T10: TryGetableMany, T11: TryGetableMany> PrimaryKeyArity for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

Sourceยง

const ARITY: usize = 11usize

Sourceยง

impl<T1: TryGetableMany, T2: TryGetableMany, T3: TryGetableMany, T4: TryGetableMany, T5: TryGetableMany, T6: TryGetableMany, T7: TryGetableMany, T8: TryGetableMany, T9: TryGetableMany, T10: TryGetableMany, T11: TryGetableMany, T12: TryGetableMany> PrimaryKeyArity for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

Sourceยง

const ARITY: usize = 12usize

Implementorsยง

Sourceยง

impl<V> PrimaryKeyArity for V
where V: TryGetable,

Sourceยง

const ARITY: usize = 1usize