#[non_exhaustive]pub struct RemoveBlockedTermRequest<'a> {
pub broadcaster_id: Cow<'a, UserIdRef>,
pub moderator_id: Cow<'a, UserIdRef>,
pub id: Cow<'a, BlockedTermIdRef>,
}
Available on crate feature
helix
only.Expand description
Query Parameters for Remove Blocked Terms
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>
The ID of the broadcaster that owns the list of blocked terms.
moderator_id: Cow<'a, UserIdRef>
The ID of a user that has permission to moderate the broadcaster’s chat room. This ID must match the user ID associated with the user OAuth token. If the broadcaster wants to delete the blocked term (instead of having the moderator do it), set this parameter to the broadcaster’s ID, too.
id: Cow<'a, BlockedTermIdRef>
The ID of the blocked term you want to delete.
Implementations§
Source§impl<'a> RemoveBlockedTermRequest<'a>
impl<'a> RemoveBlockedTermRequest<'a>
Sourcepub fn builder() -> RemoveBlockedTermRequestBuilder<'a, ((), (), ())>
pub fn builder() -> RemoveBlockedTermRequestBuilder<'a, ((), (), ())>
Create a builder for building RemoveBlockedTermRequest
.
On the builder, call .broadcaster_id(...)
, .moderator_id(...)
, .id(...)
to set the values of the fields.
Finally, call .build()
to create the instance of RemoveBlockedTermRequest
.
Trait Implementations§
Source§impl<'a> Clone for RemoveBlockedTermRequest<'a>
impl<'a> Clone for RemoveBlockedTermRequest<'a>
Source§fn clone(&self) -> RemoveBlockedTermRequest<'a>
fn clone(&self) -> RemoveBlockedTermRequest<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for RemoveBlockedTermRequest<'a>
impl<'a> Debug for RemoveBlockedTermRequest<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for RemoveBlockedTermRequest<'a>
impl<'de: 'a, 'a> Deserialize<'de> for RemoveBlockedTermRequest<'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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> PartialEq for RemoveBlockedTermRequest<'a>
impl<'a> PartialEq for RemoveBlockedTermRequest<'a>
Source§fn eq(&self, other: &RemoveBlockedTermRequest<'a>) -> bool
fn eq(&self, other: &RemoveBlockedTermRequest<'a>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Request for RemoveBlockedTermRequest<'_>
impl Request for RemoveBlockedTermRequest<'_>
Source§const OPT_SCOPE: &'static [Scope]
const OPT_SCOPE: &'static [Scope]
Available on crate feature
twitch_oauth2
only.Optional scopes needed by this endpoint
Source§const PATH: &'static str = "moderation/blocked_terms"
const PATH: &'static str = "moderation/blocked_terms"
The path to the endpoint relative to the helix root. eg.
channels
for Get Channel InformationSource§const SCOPE: Validator
const SCOPE: Validator
Available on crate feature
twitch_oauth2
only.Scopes needed for this endpoint
Source§type Response = RemoveBlockedTerm
type Response = RemoveBlockedTerm
Response type. twitch’s response will deserialize to this.
Source§fn get_uri(&self) -> Result<Uri, InvalidUri>
fn get_uri(&self) -> Result<Uri, InvalidUri>
Returns full URI for the request, including query parameters.
Source§fn get_bare_uri() -> Result<Uri, InvalidUri>
fn get_bare_uri() -> Result<Uri, InvalidUri>
Returns bare URI for the request, NOT including query parameters.
Source§impl RequestDelete for RemoveBlockedTermRequest<'_>
impl RequestDelete for RemoveBlockedTermRequest<'_>
Source§fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode,
) -> Result<Response<Self, Self::Response>, HelixRequestDeleteError>where
Self: Sized,
fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode,
) -> Result<Response<Self, Self::Response>, HelixRequestDeleteError>where
Self: Sized,
Parse a response string into the response.
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>
Create a
http::Request
from this Request
in your clientSource§impl<'a> Serialize for RemoveBlockedTermRequest<'a>
impl<'a> Serialize for RemoveBlockedTermRequest<'a>
impl<'a> Eq for RemoveBlockedTermRequest<'a>
impl<'a> StructuralPartialEq for RemoveBlockedTermRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for RemoveBlockedTermRequest<'a>
impl<'a> RefUnwindSafe for RemoveBlockedTermRequest<'a>
impl<'a> Send for RemoveBlockedTermRequest<'a>
impl<'a> Sync for RemoveBlockedTermRequest<'a>
impl<'a> Unpin for RemoveBlockedTermRequest<'a>
impl<'a> UnwindSafe for RemoveBlockedTermRequest<'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