pub struct Notice<'a> {
pub raw: Cow<'a, str>,
pub channel: Cow<'a, str>,
pub message: Cow<'a, str>,
pub tags: Tags<'a>,
}
👎Deprecated: twitch has deprecated chat commands through irc, see https://discuss.dev.twitch.tv/t/deprecation-of-chat-commands-through-irc/40486
Expand description
NOTICE
Sent to indicate the outcome of an action like banning a user.
Fields§
§raw: Cow<'a, str>
👎Deprecated: twitch has deprecated chat commands through irc, see https://discuss.dev.twitch.tv/t/deprecation-of-chat-commands-through-irc/40486
The raw underlying string
channel: Cow<'a, str>
👎Deprecated: twitch has deprecated chat commands through irc, see https://discuss.dev.twitch.tv/t/deprecation-of-chat-commands-through-irc/40486
§message: Cow<'a, str>
👎Deprecated: twitch has deprecated chat commands through irc, see https://discuss.dev.twitch.tv/t/deprecation-of-chat-commands-through-irc/40486
👎Deprecated: twitch has deprecated chat commands through irc, see https://discuss.dev.twitch.tv/t/deprecation-of-chat-commands-through-irc/40486
Metadata attached to the message
Implementations§
Source§impl<'a> Notice<'a>
impl<'a> Notice<'a>
pub fn notice_kind(&self) -> NoticeKind
pub fn target_user_id(&self) -> Option<&str>
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Notice<'a>
impl<'de, 'a> Deserialize<'de> for Notice<'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, 'b: 'a> From<&'b Notice<'a>> for TwitchMessage<'a>
impl<'a, 'b: 'a> From<&'b Notice<'a>> for TwitchMessage<'a>
Source§impl<'a> From<Notice<'a>> for TwitchMessage<'a>
impl<'a> From<Notice<'a>> for TwitchMessage<'a>
Source§impl<'a> IntoStatic for Notice<'a>where
'static: 'a,
impl<'a> IntoStatic for Notice<'a>where
'static: 'a,
Source§fn into_static(self) -> Self::Output
fn into_static(self) -> Self::Output
This method casts
self
between Self<'a>
and Self<'static>
.impl<'a> Eq for Notice<'a>
impl<'a> StructuralPartialEq for Notice<'a>
Auto Trait Implementations§
impl<'a> Freeze for Notice<'a>
impl<'a> RefUnwindSafe for Notice<'a>
impl<'a> Send for Notice<'a>
impl<'a> Sync for Notice<'a>
impl<'a> Unpin for Notice<'a>
impl<'a> UnwindSafe for Notice<'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