Skip to main content

EntityDeleteBorrowed

Trait EntityDeleteBorrowed 

Source
pub trait EntityDeleteBorrowed: EntityDatabaseMutation + BorrowPrimaryKey {
    // Required method
    fn delete_borrowed<'a, Tx>(
        tx: &'a Tx,
        id: Self::BorrowedPrimaryKey<'_>,
    ) -> CryptoKeystoreResult<bool>
       where &'a Tx: Into<Transactionlike<'a>>;
}
Expand description

Extend an Entity with db-mutating operations which can be performed when provided with a transaction.

Required Methods§

Source

fn delete_borrowed<'a, Tx>( tx: &'a Tx, id: Self::BorrowedPrimaryKey<'_>, ) -> CryptoKeystoreResult<bool>

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