pub struct Offers<'a> { /* private fields */ }Implementations§
Source§impl<'a> Offers<'a>
impl<'a> Offers<'a>
pub fn new(api: &'a dyn KrApi) -> Self
Sourcepub async fn personal_offers(
&self,
store_id: &str,
) -> Result<PersonalOffersResponse, ApiError>
pub async fn personal_offers( &self, store_id: &str, ) -> Result<PersonalOffersResponse, ApiError>
The account’s personalised offers, scoped to a store.
Measured against two real stores: the set differs rather than being identical everywhere, matching the restriction text K-Ruoka attaches to each offer (“valid in the K-food stores where the product is available”).
Every offer observed so far was already loaded onto the Plussa card, applying
one is just buying a listed product – not verified as a universal guarantee,
since nothing here has tried to find or call a separate activation endpoint.
Time-limited (each offer carries its own validUntil), so the caller must
never cache this. An anonymous session returns {"offers": []} rather than an
error, measured against a fresh, never-logged-in profile.
Auto Trait Implementations§
impl<'a> Freeze for Offers<'a>
impl<'a> !RefUnwindSafe for Offers<'a>
impl<'a> Send for Offers<'a>
impl<'a> Sync for Offers<'a>
impl<'a> Unpin for Offers<'a>
impl<'a> UnsafeUnpin for Offers<'a>
impl<'a> !UnwindSafe for Offers<'a>
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