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