Trait Identifiable

Source
pub trait Identifiable {
    type PrimaryKey: PrimaryKey;

    // Required methods
    fn get_primary_key(&self) -> Self::PrimaryKey;
    fn type_name() -> Cow<'static, str>;
    fn sort_key_prefix() -> Option<Cow<'static, str>>;

    // Provided methods
    fn is_sk_encrypted() -> bool { ... }
    fn is_pk_encrypted() -> bool { ... }
}

Required Associated Types§

Required Methods§

Source

fn get_primary_key(&self) -> Self::PrimaryKey

Source

fn type_name() -> Cow<'static, str>

Source

fn sort_key_prefix() -> Option<Cow<'static, str>>

Provided Methods§

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§