pub struct GetEntitlements<'a> { /* private fields */ }
Expand description
Get all entitlements for a given app, active and expired.
Implementations§
source§impl<'a> GetEntitlements<'a>
impl<'a> GetEntitlements<'a>
sourcepub const fn after(self, after: Id<EntitlementMarker>) -> Self
pub const fn after(self, after: Id<EntitlementMarker>) -> Self
Retrieve entitlements after this time.
sourcepub const fn before(self, before: Id<EntitlementMarker>) -> Self
pub const fn before(self, before: Id<EntitlementMarker>) -> Self
Retrieve entitlements before this time.
sourcepub const fn exclude_ended(self, exclude_ended: bool) -> Self
pub const fn exclude_ended(self, exclude_ended: bool) -> Self
Whether to exclude ended entitlements.
sourcepub const fn guild_id(self, guild_id: Id<GuildMarker>) -> Self
pub const fn guild_id(self, guild_id: Id<GuildMarker>) -> Self
Guild ID to look up entitlements for.
sourcepub fn limit(self, limit: u8) -> Result<Self, ValidationError>
pub fn limit(self, limit: u8) -> Result<Self, ValidationError>
Number of entitlements to return. Set to 100 if unspecified.
The minimum is 1 and the maximum is 100.
§Errors
Returns a GetEntitlementsError
error type if the amount
is less than 1 or greater than 100.
sourcepub const fn sku_ids(self, sku_ids: &'a [Id<SkuMarker>]) -> Self
pub const fn sku_ids(self, sku_ids: &'a [Id<SkuMarker>]) -> Self
List of SKU IDs to check entitlements for.
sourcepub const fn user_id(self, user_id: Id<UserMarker>) -> Self
pub const fn user_id(self, user_id: Id<UserMarker>) -> Self
User ID to look up entitlements for.
Trait Implementations§
source§impl IntoFuture for GetEntitlements<'_>
impl IntoFuture for GetEntitlements<'_>
source§type Output = Result<Response<ListBody<Entitlement>>, Error>
type Output = Result<Response<ListBody<Entitlement>>, Error>
The output that the future will produce on completion.
source§type IntoFuture = ResponseFuture<ListBody<Entitlement>>
type IntoFuture = ResponseFuture<ListBody<Entitlement>>
Which kind of future are we turning this into?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
source§impl TryIntoRequest for GetEntitlements<'_>
impl TryIntoRequest for GetEntitlements<'_>
Auto Trait Implementations§
impl<'a> Freeze for GetEntitlements<'a>
impl<'a> !RefUnwindSafe for GetEntitlements<'a>
impl<'a> Send for GetEntitlements<'a>
impl<'a> Sync for GetEntitlements<'a>
impl<'a> Unpin for GetEntitlements<'a>
impl<'a> !UnwindSafe for GetEntitlements<'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