pub struct SqliteWishlistRepository { /* private fields */ }Available on crate feature
sqlite only.Implementations§
Source§impl SqliteWishlistRepository
impl SqliteWishlistRepository
pub const fn new(pool: Pool<SqliteConnectionManager>) -> Self
Trait Implementations§
Source§impl Debug for SqliteWishlistRepository
impl Debug for SqliteWishlistRepository
Source§impl WishlistRepository for SqliteWishlistRepository
impl WishlistRepository for SqliteWishlistRepository
Source§fn update(&self, id: WishlistId, input: UpdateWishlist) -> Result<Wishlist>
fn update(&self, id: WishlistId, input: UpdateWishlist) -> Result<Wishlist>
Update wishlist metadata
Source§fn add_item(
&self,
wishlist_id: WishlistId,
item: AddWishlistItem,
) -> Result<WishlistItem>
fn add_item( &self, wishlist_id: WishlistId, item: AddWishlistItem, ) -> Result<WishlistItem>
Add an item to a wishlist
Source§fn remove_item(
&self,
wishlist_id: WishlistId,
product_id: ProductId,
) -> Result<()>
fn remove_item( &self, wishlist_id: WishlistId, product_id: ProductId, ) -> Result<()>
Remove an item from a wishlist
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteWishlistRepository
impl !UnwindSafe for SqliteWishlistRepository
impl Freeze for SqliteWishlistRepository
impl Send for SqliteWishlistRepository
impl Sync for SqliteWishlistRepository
impl Unpin for SqliteWishlistRepository
impl UnsafeUnpin for SqliteWishlistRepository
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