Struct sqlx_ledger::entry::Entries
source · pub struct Entries { /* private fields */ }
Expand description
Repository for working with Entry
(Debit/Credit) entities.
Implementations§
source§impl Entries
impl Entries
pub fn new(pool: &PgPool) -> Self
pub async fn list_by_transaction_ids( &self, tx_ids: impl IntoIterator<Item = impl Borrow<TransactionId>> ) -> Result<HashMap<TransactionId, Vec<Entry>>, SqlxLedgerError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Entries
impl Send for Entries
impl Sync for Entries
impl Unpin for Entries
impl !UnwindSafe for Entries
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more