generated from phundrak/rust-poem-openapi-template
add get_id and relationships, untested
All checks were successful
CI / tests (push) Successful in 8m40s
All checks were successful
CI / tests (push) Successful in 8m40s
This commit is contained in:
@@ -70,4 +70,7 @@ pub trait Crud<Id> {
|
||||
pool: &sqlx::PgPool,
|
||||
id: &Id,
|
||||
) -> impl std::future::Future<Output = sqlx::Result<u64>> + Send;
|
||||
|
||||
/// Returns the identifier of the entity.
|
||||
fn get_id(&self) -> &Id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user