pub struct OfferingsClient { /* private fields */ }Implementations§
Source§impl OfferingsClient
impl OfferingsClient
pub fn new(http: Arc<HttpClient>, store: Arc<CacheStore>) -> Self
pub fn with_clock(self, clock: Arc<dyn Clock>) -> Self
Sourcepub fn get_offerings(&self) -> RovenueResult<CoreOfferings>
pub fn get_offerings(&self) -> RovenueResult<CoreOfferings>
Fetch offerings.
On a successful live fetch the raw OfferingsResponse JSON is persisted
and the mapped result returned. If the fetch fails with a
connectivity-class error (NetworkUnavailable / Timeout), the last
cached offerings are served so funnel screens keep rendering offline.
Auth (InvalidApiKey) and server (ServerError, RateLimited,
Internal) failures are propagated as before — stale offerings are NOT
served on these because they indicate a reachable-but-rejecting backend,
not loss of connectivity.
Auto Trait Implementations§
impl Freeze for OfferingsClient
impl !RefUnwindSafe for OfferingsClient
impl Send for OfferingsClient
impl Sync for OfferingsClient
impl Unpin for OfferingsClient
impl !UnwindSafe for OfferingsClient
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