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>>
       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§