pub struct GetSKUSubscriptions<'a> { /* private fields */ }Expand description
Returns all subscriptions containing the SKU, filtered by user.
Implementations§
Source§impl<'a> GetSKUSubscriptions<'a>
impl<'a> GetSKUSubscriptions<'a>
Sourcepub const fn after(self, after: Id<SubscriptionMarker>) -> Self
pub const fn after(self, after: Id<SubscriptionMarker>) -> Self
List subscriptions after this ID.
Sourcepub const fn before(self, before: Id<SubscriptionMarker>) -> Self
pub const fn before(self, before: Id<SubscriptionMarker>) -> Self
List subscriptions before this ID.
Sourcepub fn limit(self, limit: u8) -> Self
pub fn limit(self, limit: u8) -> Self
Number of subscriptions to return.
The minimum is 1 and the maximum is 100.
The Discord default is 50.
§Errors
Returns a GetSKUSubscriptionsError error type if the amount
is less than 1 or greater than 100.
Sourcepub const fn user_id(self, user_id: Id<UserMarker>) -> Self
pub const fn user_id(self, user_id: Id<UserMarker>) -> Self
User ID for which to return subscriptions. Required except for OAuth queries.
Trait Implementations§
Source§impl IntoFuture for GetSKUSubscriptions<'_>
impl IntoFuture for GetSKUSubscriptions<'_>
Source§type Output = Result<Response<ListBody<Subscription>>, Error>
type Output = Result<Response<ListBody<Subscription>>, Error>
The output that the future will produce on completion.
Source§type IntoFuture = ResponseFuture<ListBody<Subscription>>
type IntoFuture = ResponseFuture<ListBody<Subscription>>
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 GetSKUSubscriptions<'_>
impl TryIntoRequest for GetSKUSubscriptions<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for GetSKUSubscriptions<'a>
impl<'a> !UnwindSafe for GetSKUSubscriptions<'a>
impl<'a> Forget for GetSKUSubscriptions<'a>
impl<'a> Freeze for GetSKUSubscriptions<'a>where
PhantomData<fn(SubscriptionMarker) -> SubscriptionMarker>: Freeze,
NonZero<u64>: Freeze,
PhantomData<fn(UserMarker) -> UserMarker>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
NonZero<i32>: Freeze,
&'static str: Freeze,
&'a Client: Freeze,
PhantomData<fn(SkuMarker) -> SkuMarker>: Freeze,
impl<'a> Move for GetSKUSubscriptions<'a>
impl<'a> Send for GetSKUSubscriptions<'a>
impl<'a> Sync for GetSKUSubscriptions<'a>where
NonZero<u64>: Sync,
RawVecInner: Sync,
NonZero<i32>: Sync,
BoxRaw<[Pos]>: Sync,
Bytes: Sync,
Arc<Config>: Sync,
Arc<Resolver<GenericConnector<TokioRuntimeProvider>>>: Sync,
Arc<ClientConfig>: Sync,
Arc<dyn ResolveServerName + Send + Sync>: Sync,
Arc<dyn Executor<Pin<Box<dyn Future<Output = ()> + Send>>> + Send + Sync>: Sync,
Arc<dyn Timer + Send + Sync>: Sync,
Arc<Mutex<PoolInner<PoolClient<Full<Bytes>>, (Scheme, Authority)>>>: Sync,
BoxRaw<str>: Sync,
Arc<Chan<(Message, Option<Box<dyn FnOnce(Option<Bucket>) -> bool + Send>>), Semaphore>>: Sync,
Arc<Atomic<bool>>: Sync,
impl<'a> Unpin for GetSKUSubscriptions<'a>
impl<'a> UnsafeUnpin for GetSKUSubscriptions<'a>where
PhantomData<fn(SubscriptionMarker) -> SubscriptionMarker>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
PhantomData<fn(UserMarker) -> UserMarker>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
&'static str: UnsafeUnpin,
&'a Client: UnsafeUnpin,
PhantomData<fn(SkuMarker) -> SkuMarker>: UnsafeUnpin,
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