Struct hiirc::Message [] [src]

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

Represents a message received from the server.

Fields

Prefix

Code

Arguments

Methods

impl Message
[src]

[src]

Parse the given string into a Message struct.

An error is returned if the message is not valid.

Trait Implementations

impl Clone for Message
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Message
[src]

impl PartialEq<Message> for Message
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for Message
[src]

[src]

Formats the value using the given formatter.