Struct twitch_irc::message::PartMessage
source · [−]pub struct PartMessage {
pub channel_login: String,
pub user_login: String,
pub source: IRCMessage,
}Expand description
Message received when you successfully leave (part) a channel.
Fields
channel_login: StringLogin name of the channel you parted.
user_login: StringThe login name of the logged in user (the login name of the user that parted the channel, which is the logged in user).
source: IRCMessageThe message that this PartMessage was parsed from.
Trait Implementations
sourceimpl Clone for PartMessage
impl Clone for PartMessage
sourcefn clone(&self) -> PartMessage
fn clone(&self) -> PartMessage
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 Debug for PartMessage
impl Debug for PartMessage
sourceimpl<'de> Deserialize<'de> for PartMessage
impl<'de> Deserialize<'de> for PartMessage
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 From<PartMessage> for IRCMessage
impl From<PartMessage> for IRCMessage
sourcefn from(msg: PartMessage) -> IRCMessage
fn from(msg: PartMessage) -> IRCMessage
Converts to this type from the input type.
sourceimpl PartialEq<PartMessage> for PartMessage
impl PartialEq<PartMessage> for PartMessage
sourcefn eq(&self, other: &PartMessage) -> bool
fn eq(&self, other: &PartMessage) -> bool
sourceimpl Serialize for PartMessage
impl Serialize for PartMessage
sourceimpl TryFrom<IRCMessage> for PartMessage
impl TryFrom<IRCMessage> for PartMessage
type Error = ServerMessageParseError
type Error = ServerMessageParseError
The type returned in the event of a conversion error.
sourcefn try_from(source: IRCMessage) -> Result<PartMessage, ServerMessageParseError>
fn try_from(source: IRCMessage) -> Result<PartMessage, ServerMessageParseError>
Performs the conversion.
impl Eq for PartMessage
impl StructuralEq for PartMessage
impl StructuralPartialEq for PartMessage
Auto Trait Implementations
impl RefUnwindSafe for PartMessage
impl Send for PartMessage
impl Sync for PartMessage
impl Unpin for PartMessage
impl UnwindSafe for PartMessage
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.