[][src]Struct madhouse_steve_tmi::DecodedMessage

pub struct DecodedMessage {
    pub metadata: HashMap<String, String>,
    pub from: String,
    pub command: String,
    pub target: Option<String>,
    pub params: String,
}

The parsed content of a TMI message

Fields

metadata: HashMap<String, String>

Contains all the metadata in a map from the TMI message

from: String

The server or user name from which the message originated

command: String

The command that the IRC server sent. These are IRC commands as per section 3 of https://tools.ietf.org/html/rfc2821

target: Option<String>

Where the message was sent (e.g. channel, or direct to user)

params: String

The parameters of the command, for example the message content for PRIVMSG

Trait Implementations

impl Debug for DecodedMessage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.