Skip to main content

EntityGetBorrowed

Trait EntityGetBorrowed 

Source
pub trait EntityGetBorrowed: Entity + BorrowPrimaryKey {
    // Required method
    fn get_borrowed(
        conn: &Connection,
        key: &Self::BorrowedPrimaryKey,
    ) -> CryptoKeystoreResult<Option<Self>>;
}

Required Methods§

Source

fn get_borrowed( conn: &Connection, key: &Self::BorrowedPrimaryKey, ) -> CryptoKeystoreResult<Option<Self>>

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".

Implementors§