pub struct SqliteShippingZoneRepository { /* private fields */ }Available on crate feature
sqlite only.Implementations§
Source§impl SqliteShippingZoneRepository
impl SqliteShippingZoneRepository
pub const fn new(pool: Pool<SqliteConnectionManager>) -> Self
Trait Implementations§
Source§impl Debug for SqliteShippingZoneRepository
impl Debug for SqliteShippingZoneRepository
Source§impl ShippingZoneRepository for SqliteShippingZoneRepository
impl ShippingZoneRepository for SqliteShippingZoneRepository
Source§fn create(&self, input: CreateShippingZone) -> Result<ShippingZone>
fn create(&self, input: CreateShippingZone) -> Result<ShippingZone>
Create a new shipping zone
Source§fn get(&self, id: ShippingZoneId) -> Result<Option<ShippingZone>>
fn get(&self, id: ShippingZoneId) -> Result<Option<ShippingZone>>
Get shipping zone by ID
Source§fn update(
&self,
id: ShippingZoneId,
input: UpdateShippingZone,
) -> Result<ShippingZone>
fn update( &self, id: ShippingZoneId, input: UpdateShippingZone, ) -> Result<ShippingZone>
Update a shipping zone
Source§fn list(&self, filter: ShippingZoneFilter) -> Result<Vec<ShippingZone>>
fn list(&self, filter: ShippingZoneFilter) -> Result<Vec<ShippingZone>>
List shipping zones with filter
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteShippingZoneRepository
impl !UnwindSafe for SqliteShippingZoneRepository
impl Freeze for SqliteShippingZoneRepository
impl Send for SqliteShippingZoneRepository
impl Sync for SqliteShippingZoneRepository
impl Unpin for SqliteShippingZoneRepository
impl UnsafeUnpin for SqliteShippingZoneRepository
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