pub struct Wishlists { /* private fields */ }Expand description
Wishlist operations for managing customer wishlists.
Implementations§
Source§impl Wishlists
impl Wishlists
Sourcepub fn is_supported(&self) -> bool
pub fn is_supported(&self) -> bool
Whether wishlists are supported by the active backend.
Sourcepub fn create(&self, input: CreateWishlist) -> Result<Wishlist>
pub fn create(&self, input: CreateWishlist) -> Result<Wishlist>
Sourcepub fn update(&self, id: WishlistId, input: UpdateWishlist) -> Result<Wishlist>
pub fn update(&self, id: WishlistId, input: UpdateWishlist) -> Result<Wishlist>
Update wishlist metadata.
Sourcepub fn list(&self, filter: WishlistFilter) -> Result<Vec<Wishlist>>
pub fn list(&self, filter: WishlistFilter) -> Result<Vec<Wishlist>>
List wishlists with optional filtering.
Sourcepub fn delete(&self, id: WishlistId) -> Result<()>
pub fn delete(&self, id: WishlistId) -> Result<()>
Delete a wishlist and all its items.
Sourcepub fn add_item(
&self,
wishlist_id: WishlistId,
item: AddWishlistItem,
) -> Result<WishlistItem>
pub fn add_item( &self, wishlist_id: WishlistId, item: AddWishlistItem, ) -> Result<WishlistItem>
Add an item to a wishlist.
Sourcepub fn remove_item(
&self,
wishlist_id: WishlistId,
product_id: ProductId,
) -> Result<()>
pub fn remove_item( &self, wishlist_id: WishlistId, product_id: ProductId, ) -> Result<()>
Remove an item from a wishlist by product ID.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Wishlists
impl !UnwindSafe for Wishlists
impl Freeze for Wishlists
impl Send for Wishlists
impl Sync for Wishlists
impl Unpin for Wishlists
impl UnsafeUnpin for Wishlists
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