Struct vault::ChatLine [] [src]

pub struct ChatLine {
    pub tick: u32,
    pub name: String,
    pub message: String,
}

This type represents a single Company of Heroes 2 chat message.

Fields

tick: u32 name: String message: String

Methods

impl ChatLine
[src]

fn with_data<S>(tick: u32, name: S, message: S) -> ChatLine where S: Into<String>

Constructs a new ChatLine initialized with the data given.

fn display(&self)

Writes the contents of the ChatLine to stdout.

Trait Implementations

impl Encodable for ChatLine
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Debug for ChatLine
[src]

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

Formats the value using the given formatter.