#[non_exhaustive]pub struct GetCustomRewardRedemptionRequest<'a> {
pub broadcaster_id: Cow<'a, UserIdRef>,
pub reward_id: Option<Cow<'a, RewardIdRef>>,
pub status: Option<CustomRewardRedemptionStatus>,
pub id: Collection<'a, RedemptionId>,
pub sort: Option<GetCustomRewardRedemptionSortOrder>,
pub after: Option<Cow<'a, CursorRef>>,
pub first: Option<usize>,
}
helix
only.Expand description
Query Parameters for Get Custom Reward Redemption
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.broadcaster_id: Cow<'a, UserIdRef>
Provided broadcaster_id must match the user_id in the auth token
reward_id: Option<Cow<'a, RewardIdRef>>
When ID is not provided, this parameter returns paginated Custom Reward Redemption objects for redemptions of the Custom Reward with ID reward_id
status: Option<CustomRewardRedemptionStatus>
When id is not provided, this param is required and filters the paginated Custom Reward Redemption objects for redemptions with the matching status. Can be one of UNFULFILLED, FULFILLED or CANCELED
id: Collection<'a, RedemptionId>
A list of IDs to filter the redemptions by.
sort: Option<GetCustomRewardRedemptionSortOrder>
The order to sort redemptions by.
after: Option<Cow<'a, CursorRef>>
Cursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response. This applies only to queries without ID. If an ID is specified, it supersedes any cursor/offset combinations. The cursor value specified here is from the pagination response field of a prior query.
first: Option<usize>
Number of results to be returned when getting the paginated Custom Reward Redemption objects for a reward. Limit: 50. Default: 20.
Implementations§
Source§impl<'a> GetCustomRewardRedemptionRequest<'a>
impl<'a> GetCustomRewardRedemptionRequest<'a>
Sourcepub fn builder() -> GetCustomRewardRedemptionRequestBuilder<'a, ((), (), (), (), (), (), ())>
pub fn builder() -> GetCustomRewardRedemptionRequestBuilder<'a, ((), (), (), (), (), (), ())>
Create a builder for building GetCustomRewardRedemptionRequest
.
On the builder, call .broadcaster_id(...)
, .reward_id(...)
, .status(...)
(optional), .id(...)
(optional), .sort(...)
(optional), .after(...)
(optional), .first(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of GetCustomRewardRedemptionRequest
.
Source§impl<'a> GetCustomRewardRedemptionRequest<'a>
impl<'a> GetCustomRewardRedemptionRequest<'a>
Sourcepub fn broadcaster_id(broadcaster_id: impl IntoCow<'a, UserIdRef> + 'a) -> Self
pub fn broadcaster_id(broadcaster_id: impl IntoCow<'a, UserIdRef> + 'a) -> Self
Reward to fetch
Sourcepub fn reward_id(self, reward_id: impl IntoCow<'a, RewardIdRef> + 'a) -> Self
pub fn reward_id(self, reward_id: impl IntoCow<'a, RewardIdRef> + 'a) -> Self
Specific reward to query
Sourcepub fn status(self, status: impl Into<CustomRewardRedemptionStatus>) -> Self
pub fn status(self, status: impl Into<CustomRewardRedemptionStatus>) -> Self
Status of rewards to return
Sourcepub fn sort(self, sort: impl Into<GetCustomRewardRedemptionSortOrder>) -> Self
pub fn sort(self, sort: impl Into<GetCustomRewardRedemptionSortOrder>) -> Self
The order to sort redemptions by.
Sourcepub fn ids(self, id: impl Into<Collection<'a, RedemptionId>>) -> Self
pub fn ids(self, id: impl Into<Collection<'a, RedemptionId>>) -> Self
Get redemptions with these ids
Trait Implementations§
Source§impl<'a> Clone for GetCustomRewardRedemptionRequest<'a>
impl<'a> Clone for GetCustomRewardRedemptionRequest<'a>
Source§fn clone(&self) -> GetCustomRewardRedemptionRequest<'a>
fn clone(&self) -> GetCustomRewardRedemptionRequest<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'a> Debug for GetCustomRewardRedemptionRequest<'a>
impl<'a> Debug for GetCustomRewardRedemptionRequest<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for GetCustomRewardRedemptionRequest<'a>
impl<'de: 'a, 'a> Deserialize<'de> for GetCustomRewardRedemptionRequest<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Paginated for GetCustomRewardRedemptionRequest<'_>
impl Paginated for GetCustomRewardRedemptionRequest<'_>
Source§impl<'a> PartialEq for GetCustomRewardRedemptionRequest<'a>
impl<'a> PartialEq for GetCustomRewardRedemptionRequest<'a>
Source§fn eq(&self, other: &GetCustomRewardRedemptionRequest<'a>) -> bool
fn eq(&self, other: &GetCustomRewardRedemptionRequest<'a>) -> bool
self
and other
values to be equal, and is used by ==
.Source§impl Request for GetCustomRewardRedemptionRequest<'_>
impl Request for GetCustomRewardRedemptionRequest<'_>
Source§const PATH: &'static str = "channel_points/custom_rewards/redemptions"
const PATH: &'static str = "channel_points/custom_rewards/redemptions"
channels
for Get Channel InformationSource§const SCOPE: Validator
const SCOPE: Validator
twitch_oauth2
only.Source§type Response = Vec<CustomRewardRedemption>
type Response = Vec<CustomRewardRedemption>
Source§const OPT_SCOPE: &'static [Scope] = _
const OPT_SCOPE: &'static [Scope] = _
twitch_oauth2
only.Source§fn get_uri(&self) -> Result<Uri, InvalidUri>
fn get_uri(&self) -> Result<Uri, InvalidUri>
Source§fn get_bare_uri() -> Result<Uri, InvalidUri>
fn get_bare_uri() -> Result<Uri, InvalidUri>
Source§impl RequestGet for GetCustomRewardRedemptionRequest<'_>
impl RequestGet for GetCustomRewardRedemptionRequest<'_>
Source§fn create_request(
&self,
token: &str,
client_id: &str,
) -> Result<Request<Bytes>, CreateRequestError>
fn create_request( &self, token: &str, client_id: &str, ) -> Result<Request<Bytes>, CreateRequestError>
http::Request
from this Request
in your client