UnifiedEntityGetBorrowed

Trait UnifiedEntityGetBorrowed 

Source
pub trait UnifiedEntityGetBorrowed: UnifiedEntity + BorrowPrimaryKey {
    // Required method
    fn get_borrowed(
        conn: &Connection,
        key: &Self::BorrowedPrimaryKey,
    ) -> CryptoKeystoreResult<Option<Self>>
       where for<'pk> &'pk Self::BorrowedPrimaryKey: KeyType;
}

Required Methods§

Source

fn get_borrowed( conn: &Connection, key: &Self::BorrowedPrimaryKey, ) -> CryptoKeystoreResult<Option<Self>>
where for<'pk> &'pk Self::BorrowedPrimaryKey: KeyType,

Get an entity by a borrowed form of its 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.

Implementors§