Trait torn_key_pool::ApiKey

source ·
pub trait ApiKey: Sync + Send + Debug + Clone {
    type IdType: PartialEq + Eq + Hash + Send + Sync + Debug + Clone;

    // Required methods
    fn value(&self) -> &str;
    fn id(&self) -> Self::IdType;
}

Required Associated Types§

Required Methods§

source

fn value(&self) -> &str

source

fn id(&self) -> Self::IdType

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<D> ApiKey for PgKey<D>where D: PgKeyDomain,

§

type IdType = i32