Trait cipherstash_dynamodb::traits::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§

Object Safety§

This trait is not object safe.

Implementors§