use lunar_lib::database::{CompareAndSwapTransaction, CustomTransactionError, DatabaseEntry};
pub trait Createable: Sized + DatabaseEntry {
type CreateArgs: Clone;
type Err;
fn tx_create(
cas_tx: &mut CompareAndSwapTransaction<Self::Db>,
args: Self::CreateArgs,
) -> Result<Self, CustomTransactionError<Self::Err>>;
}