Struct hiirc::Message []

pub struct Message {
    pub prefix: Option<Prefix>,
    pub code: Code,
    pub args: Vec<String>,
}

Represents a message received from the server.

Fields

prefix: Option<Prefix>

Prefix

code: Code

Code

args: Vec<String>

Arguments

Methods

impl Message

fn parse(line: &str) -> Result<MessageParseError>

Parse the given string into a Message struct.

An error is returned if the message is not valid.

Trait Implementations

impl PartialEq<Message> for Message

fn eq(&self, __arg_0: &Message) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Message) -> bool

This method tests for !=.

impl Eq for Message

impl Debug for Message

fn fmt(&self, __arg_0: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl Clone for Message

fn clone(&self) -> Message

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more