Struct twitch_api::helix::points::update_redemption_status::UpdateRedemptionStatusRequest
source · [−]#[non_exhaustive]pub struct UpdateRedemptionStatusRequest<'a> {
pub broadcaster_id: Cow<'a, UserIdRef>,
pub reward_id: Cow<'a, RewardIdRef>,
pub id: Cow<'a, RedemptionIdRef>,
}
Available on crate feature
helix
only.Expand description
Query Parameters for Update Redemption Status
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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: Cow<'a, RewardIdRef>
ID of the Custom Reward the redemptions to be updated are for.
id: Cow<'a, RedemptionIdRef>
ID of the Custom Reward Redemption to update, must match a Custom Reward Redemption on broadcaster_id’s channel
Implementations
sourceimpl<'a> UpdateRedemptionStatusRequest<'a>
impl<'a> UpdateRedemptionStatusRequest<'a>
sourcepub fn builder() -> UpdateRedemptionStatusRequestBuilder<'a, ((), (), ())>
pub fn builder() -> UpdateRedemptionStatusRequestBuilder<'a, ((), (), ())>
Create a builder for building UpdateRedemptionStatusRequest
.
On the builder, call .broadcaster_id(...)
, .reward_id(...)
, .id(...)
to set the values of the fields.
Finally, call .build()
to create the instance of UpdateRedemptionStatusRequest
.
sourceimpl<'a> UpdateRedemptionStatusRequest<'a>
impl<'a> UpdateRedemptionStatusRequest<'a>
sourcepub fn new(
broadcaster_id: impl IntoCow<'a, UserIdRef> + 'a,
reward_id: impl IntoCow<'a, RewardIdRef> + 'a,
id: impl IntoCow<'a, RedemptionIdRef> + 'a
) -> Self
pub fn new(
broadcaster_id: impl IntoCow<'a, UserIdRef> + 'a,
reward_id: impl IntoCow<'a, RewardIdRef> + 'a,
id: impl IntoCow<'a, RedemptionIdRef> + 'a
) -> Self
Update the status of Custom Reward Redemption object on a channel that are in the UNFULFILLED status.
Trait Implementations
sourceimpl<'a> Clone for UpdateRedemptionStatusRequest<'a>
impl<'a> Clone for UpdateRedemptionStatusRequest<'a>
sourcefn clone(&self) -> UpdateRedemptionStatusRequest<'a>
fn clone(&self) -> UpdateRedemptionStatusRequest<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for UpdateRedemptionStatusRequest<'a>
impl<'a> Debug for UpdateRedemptionStatusRequest<'a>
sourceimpl<'de: 'a, 'a> Deserialize<'de> for UpdateRedemptionStatusRequest<'a>
impl<'de: 'a, 'a> Deserialize<'de> for UpdateRedemptionStatusRequest<'a>
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'a> PartialEq<UpdateRedemptionStatusRequest<'a>> for UpdateRedemptionStatusRequest<'a>
impl<'a> PartialEq<UpdateRedemptionStatusRequest<'a>> for UpdateRedemptionStatusRequest<'a>
sourcefn eq(&self, other: &UpdateRedemptionStatusRequest<'a>) -> bool
fn eq(&self, other: &UpdateRedemptionStatusRequest<'a>) -> bool
sourceimpl Request for UpdateRedemptionStatusRequest<'_>
impl Request for UpdateRedemptionStatusRequest<'_>
type Response = UpdateRedemptionStatusInformation
type Response = UpdateRedemptionStatusInformation
Response type. twitch’s response will deserialize to this.
sourceconst PATH: &'static str = "channel_points/custom_rewards/redemptions"
const PATH: &'static str = "channel_points/custom_rewards/redemptions"
The path to the endpoint relative to the helix root. eg.
channels
for Get Channel Informationsourceconst SCOPE: &'static [Scope] = _
const SCOPE: &'static [Scope] = _
Available on crate feature
twitch_oauth2
only.Scopes needed by this endpoint
sourceconst OPT_SCOPE: &'static [Scope] = _
const OPT_SCOPE: &'static [Scope] = _
Available on crate feature
twitch_oauth2
only.Optional scopes needed by this endpoint
sourcefn query(&self) -> Result<String, SerializeError>
fn query(&self) -> Result<String, SerializeError>
Defines layout of the url parameters.
sourcefn get_uri(&self) -> Result<Uri, InvalidUri>
fn get_uri(&self) -> Result<Uri, InvalidUri>
Returns full URI for the request, including query parameters.
sourcefn get_bare_uri() -> Result<Uri, InvalidUri>
fn get_bare_uri() -> Result<Uri, InvalidUri>
Returns bare URI for the request, NOT including query parameters.
sourceimpl RequestPatch for UpdateRedemptionStatusRequest<'_>
impl RequestPatch for UpdateRedemptionStatusRequest<'_>
type Body = UpdateRedemptionStatusBody
type Body = UpdateRedemptionStatusBody
Body parameters
sourcefn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestPatchError>where
Self: Sized,
fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestPatchError>where
Self: Sized,
Parse a response string into the response.
sourcefn create_request(
&self,
body: Self::Body,
token: &str,
client_id: &str
) -> Result<Request<Bytes>, CreateRequestError>
fn create_request(
&self,
body: Self::Body,
token: &str,
client_id: &str
) -> Result<Request<Bytes>, CreateRequestError>
Create a
http::Request
from this Request
in your clientsourceimpl<'a> Serialize for UpdateRedemptionStatusRequest<'a>
impl<'a> Serialize for UpdateRedemptionStatusRequest<'a>
impl<'a> Eq for UpdateRedemptionStatusRequest<'a>
impl<'a> StructuralEq for UpdateRedemptionStatusRequest<'a>
impl<'a> StructuralPartialEq for UpdateRedemptionStatusRequest<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for UpdateRedemptionStatusRequest<'a>
impl<'a> Send for UpdateRedemptionStatusRequest<'a>
impl<'a> Sync for UpdateRedemptionStatusRequest<'a>
impl<'a> Unpin for UpdateRedemptionStatusRequest<'a>
impl<'a> UnwindSafe for UpdateRedemptionStatusRequest<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.