pub struct SqlitePurgatoryRepository { /* private fields */ }Available on crate feature
sqlite only.Implementations§
Source§impl SqlitePurgatoryRepository
impl SqlitePurgatoryRepository
pub const fn new(pool: Pool<SqliteConnectionManager>) -> Self
Trait Implementations§
Source§impl Debug for SqlitePurgatoryRepository
impl Debug for SqlitePurgatoryRepository
Source§impl PurgatoryRepository for SqlitePurgatoryRepository
impl PurgatoryRepository for SqlitePurgatoryRepository
Source§fn ingest(&self, input: IngestOrder) -> Result<PurgatoryOrder>
fn ingest(&self, input: IngestOrder) -> Result<PurgatoryOrder>
Ingest an order into purgatory (non-posted).
Source§fn get(&self, id: PurgatoryOrderId) -> Result<Option<PurgatoryOrder>>
fn get(&self, id: PurgatoryOrderId) -> Result<Option<PurgatoryOrder>>
Get a purgatory order by ID (with line items).
Source§fn list(&self, filter: PurgatoryFilter) -> Result<Vec<PurgatoryOrder>>
fn list(&self, filter: PurgatoryFilter) -> Result<Vec<PurgatoryOrder>>
List purgatory orders with filter (defaults to non-posted).
Source§fn map_line(
&self,
id: PurgatoryOrderId,
line_id: PurgatoryLineItemId,
input: MapPurgatoryLine,
) -> Result<PurgatoryOrder>
fn map_line( &self, id: PurgatoryOrderId, line_id: PurgatoryLineItemId, input: MapPurgatoryLine, ) -> Result<PurgatoryOrder>
Map a line to a product and/or toggle its ignore / non-physical flags.
Source§fn post(&self, id: PurgatoryOrderId) -> Result<PurgatoryOrder>
fn post(&self, id: PurgatoryOrderId) -> Result<PurgatoryOrder>
Post the order, committing it out of purgatory. Errors if any line is
still unresolved.
Auto Trait Implementations§
impl !RefUnwindSafe for SqlitePurgatoryRepository
impl !UnwindSafe for SqlitePurgatoryRepository
impl Freeze for SqlitePurgatoryRepository
impl Send for SqlitePurgatoryRepository
impl Sync for SqlitePurgatoryRepository
impl Unpin for SqlitePurgatoryRepository
impl UnsafeUnpin for SqlitePurgatoryRepository
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