pub struct EntitlementsRepo<'a> { /* private fields */ }Implementations§
Source§impl<'a> EntitlementsRepo<'a>
impl<'a> EntitlementsRepo<'a>
pub fn new(store: &'a CacheStore) -> Self
pub fn upsert_many( &self, user_scope: &str, rows: &[EntitlementRow], ) -> RovenueResult<()>
pub fn get( &self, user_scope: &str, entitlement_id: &str, ) -> RovenueResult<Option<EntitlementRow>>
pub fn list(&self, user_scope: &str) -> RovenueResult<Vec<EntitlementRow>>
Auto Trait Implementations§
impl<'a> Freeze for EntitlementsRepo<'a>
impl<'a> RefUnwindSafe for EntitlementsRepo<'a>
impl<'a> Send for EntitlementsRepo<'a>
impl<'a> Sync for EntitlementsRepo<'a>
impl<'a> Unpin for EntitlementsRepo<'a>
impl<'a> UnwindSafe for EntitlementsRepo<'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