pub struct ListEntitlements<'a> {
pub user_id: Option<Snowflake>,
pub sku_ids: &'a [Snowflake],
pub guild_id: Option<Snowflake>,
pub before: Option<Snowflake>,
pub after: Option<Snowflake>,
pub limit: Option<u8>,
pub exclude_ended: bool,
pub exclude_deleted: bool,
}Available on crate features
rest-monetization and rest only.Expand description
Filters and paging of BotClient::list_entitlements, by entitlement id
Fields§
§user_id: Option<Snowflake>Only this user’s
sku_ids: &'a [Snowflake]Only for these SKUs
guild_id: Option<Snowflake>Only this guild’s
before: Option<Snowflake>Entitlements before this id
after: Option<Snowflake>Entitlements after this id
limit: Option<u8>1-100, default 100
exclude_ended: boolLeave out entitlements that ended
exclude_deleted: boolLeave out deleted entitlements
Trait Implementations§
Source§impl<'a> Clone for ListEntitlements<'a>
impl<'a> Clone for ListEntitlements<'a>
impl<'a> Copy for ListEntitlements<'a>
Source§impl<'a> Debug for ListEntitlements<'a>
impl<'a> Debug for ListEntitlements<'a>
Auto Trait Implementations§
impl<'a> Freeze for ListEntitlements<'a>
impl<'a> RefUnwindSafe for ListEntitlements<'a>
impl<'a> Send for ListEntitlements<'a>
impl<'a> Sync for ListEntitlements<'a>
impl<'a> Unpin for ListEntitlements<'a>
impl<'a> UnsafeUnpin for ListEntitlements<'a>
impl<'a> UnwindSafe for ListEntitlements<'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