#[non_exhaustive]pub struct DeleteChatMessagesRequest<'a> {
pub broadcaster_id: Cow<'a, UserIdRef>,
pub moderator_id: Cow<'a, UserIdRef>,
pub message_id: Option<Cow<'a, MsgIdRef>>,
}helix only.Expand description
Query Parameters for Delete Chat Messages
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 that owns the chat room to remove messages from.
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 in the OAuth token. If the broadcaster wants to remove messages themselves, set this parameter to the broadcaster’s ID, too.
message_id: Option<Cow<'a, MsgIdRef>>The ID of the message to remove.
The id tag in the PRIVMSG contains the message’s ID (see PRIVMSG Tags).
§Restrictions
The message must have been created within the last 6 hours. The message must not belong to the broadcaster. The message must not belong to another moderator.
If not specified, the request removes all messages in the broadcaster’s chat room.
Implementations§
Source§impl<'a> DeleteChatMessagesRequest<'a>
impl<'a> DeleteChatMessagesRequest<'a>
Sourcepub fn builder() -> DeleteChatMessagesRequestBuilder<'a, ((), (), ())>
pub fn builder() -> DeleteChatMessagesRequestBuilder<'a, ((), (), ())>
Create a builder for building DeleteChatMessagesRequest.
On the builder, call .broadcaster_id(...), .moderator_id(...), .message_id(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of DeleteChatMessagesRequest.
Source§impl<'a> DeleteChatMessagesRequest<'a>
impl<'a> DeleteChatMessagesRequest<'a>
Trait Implementations§
Source§impl<'a> Clone for DeleteChatMessagesRequest<'a>
impl<'a> Clone for DeleteChatMessagesRequest<'a>
Source§fn clone(&self) -> DeleteChatMessagesRequest<'a>
fn clone(&self) -> DeleteChatMessagesRequest<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for DeleteChatMessagesRequest<'a>
impl<'a> Debug for DeleteChatMessagesRequest<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for DeleteChatMessagesRequest<'a>
impl<'de: 'a, 'a> Deserialize<'de> for DeleteChatMessagesRequest<'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 DeleteChatMessagesRequest<'a>
impl<'a> PartialEq for DeleteChatMessagesRequest<'a>
Source§fn eq(&self, other: &DeleteChatMessagesRequest<'a>) -> bool
fn eq(&self, other: &DeleteChatMessagesRequest<'a>) -> bool
self and other values to be equal, and is used by ==.Source§impl Request for DeleteChatMessagesRequest<'_>
impl Request for DeleteChatMessagesRequest<'_>
Source§const OPT_SCOPE: &'static [Scope]
const OPT_SCOPE: &'static [Scope]
twitch_oauth2 only.Source§const PATH: &'static str = "moderation/chat"
const PATH: &'static str = "moderation/chat"
channels for Get Channel InformationSource§const SCOPE: Validator
const SCOPE: Validator
twitch_oauth2 only.Source§type PaginationData = ()
type PaginationData = ()
Source§type Response = DeleteChatMessagesResponse
type Response = DeleteChatMessagesResponse
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 RequestDelete for DeleteChatMessagesRequest<'_>
impl RequestDelete for DeleteChatMessagesRequest<'_>
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,
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