#[non_exhaustive]pub struct ResolveUnbanRequest<'a> {
pub broadcaster_id: Cow<'a, UserIdRef>,
pub moderator_id: Cow<'a, UserIdRef>,
pub unban_request_id: Cow<'a, UnbanRequestIdRef>,
pub status: UnbanRequestStatus,
pub resolution_text: Option<Cow<'a, str>>,
}
helix
only.Expand description
Query Parameters for Resolve Unban Request
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>
The ID of the broadcaster whose channel is approving or denying the unban request.
moderator_id: Cow<'a, UserIdRef>
The ID of the broadcaster or a user that has permission to moderate the broadcaster’s unban requests. This ID must match the user ID in the user access token.
unban_request_id: Cow<'a, UnbanRequestIdRef>
The ID of the Unban Request to resolve.
status: UnbanRequestStatus
§resolution_text: Option<Cow<'a, str>>
Message supplied by the unban request resolver. The message is limited to a maximum of 500 characters.
Implementations§
Source§impl<'a> ResolveUnbanRequest<'a>
impl<'a> ResolveUnbanRequest<'a>
Sourcepub fn builder() -> ResolveUnbanRequestBuilder<'a, ((), (), (), (), ())>
pub fn builder() -> ResolveUnbanRequestBuilder<'a, ((), (), (), (), ())>
Create a builder for building ResolveUnbanRequest
.
On the builder, call .broadcaster_id(...)
, .moderator_id(...)
, .unban_request_id(...)
, .status(...)
, .resolution_text(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ResolveUnbanRequest
.
Source§impl<'a> ResolveUnbanRequest<'a>
impl<'a> ResolveUnbanRequest<'a>
Sourcepub fn approve(
broadcaster_id: impl IntoCow<'a, UserIdRef> + 'a,
moderator_id: impl IntoCow<'a, UserIdRef> + 'a,
unban_request_id: impl IntoCow<'a, UnbanRequestIdRef> + 'a,
) -> Self
pub fn approve( broadcaster_id: impl IntoCow<'a, UserIdRef> + 'a, moderator_id: impl IntoCow<'a, UserIdRef> + 'a, unban_request_id: impl IntoCow<'a, UnbanRequestIdRef> + 'a, ) -> Self
Approve an unban request
Sourcepub fn deny(
broadcaster_id: impl IntoCow<'a, UserIdRef> + 'a,
moderator_id: impl IntoCow<'a, UserIdRef> + 'a,
unban_request_id: impl IntoCow<'a, UnbanRequestIdRef> + 'a,
) -> Self
pub fn deny( broadcaster_id: impl IntoCow<'a, UserIdRef> + 'a, moderator_id: impl IntoCow<'a, UserIdRef> + 'a, unban_request_id: impl IntoCow<'a, UnbanRequestIdRef> + 'a, ) -> Self
Deny an unban request
Sourcepub fn new(
broadcaster_id: impl IntoCow<'a, UserIdRef> + 'a,
moderator_id: impl IntoCow<'a, UserIdRef> + 'a,
unban_request_id: impl IntoCow<'a, UnbanRequestIdRef> + 'a,
status: UnbanRequestStatus,
) -> Self
pub fn new( broadcaster_id: impl IntoCow<'a, UserIdRef> + 'a, moderator_id: impl IntoCow<'a, UserIdRef> + 'a, unban_request_id: impl IntoCow<'a, UnbanRequestIdRef> + 'a, status: UnbanRequestStatus, ) -> Self
Sourcepub fn resolution_text(self, text: impl IntoCow<'a, str> + 'a) -> Self
pub fn resolution_text(self, text: impl IntoCow<'a, str> + 'a) -> Self
Set the resolution text for a request
Trait Implementations§
Source§impl<'a> Clone for ResolveUnbanRequest<'a>
impl<'a> Clone for ResolveUnbanRequest<'a>
Source§fn clone(&self) -> ResolveUnbanRequest<'a>
fn clone(&self) -> ResolveUnbanRequest<'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 ResolveUnbanRequest<'a>
impl<'a> Debug for ResolveUnbanRequest<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for ResolveUnbanRequest<'a>
impl<'de: 'a, 'a> Deserialize<'de> for ResolveUnbanRequest<'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<'a> PartialEq for ResolveUnbanRequest<'a>
impl<'a> PartialEq for ResolveUnbanRequest<'a>
Source§impl Request for ResolveUnbanRequest<'_>
impl Request for ResolveUnbanRequest<'_>
Source§const PATH: &'static str = "moderation/unban_requests"
const PATH: &'static str = "moderation/unban_requests"
channels
for Get Channel InformationSource§const SCOPE: Validator
const SCOPE: Validator
twitch_oauth2
only.Source§type Response = UnbanRequest
type Response = UnbanRequest
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 RequestPatch for ResolveUnbanRequest<'_>
impl RequestPatch for ResolveUnbanRequest<'_>
Source§fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode,
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestPatchError>where
Self: Sized,
fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode,
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestPatchError>where
Self: Sized,
Source§fn 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>
http::Request
from this Request
in your client