Struct kudubot_bindings::structs::Message [] [src]

pub struct Message {
    pub message_title: String,
    pub message_body: String,
    pub receiver: Contact,
    pub sender: Contact,
    pub sender_group: Option<Contact>,
    pub timestamp: f64,
}

The Message struct models a Message as defined by the kudubot framework for easy use in rust.

Arguments

  • message_title - The title of the message
  • message_body - The body of the message
  • receiver - The recipient of the message
  • sender - The sender of the message
  • sender_group - The sender group of the message. May be None.
  • timestamp - The timestamp of the message

Fields

Methods

impl Message
[src]

Implementation of methods for the Message struct

[src]

Turns the Message into a String

Return value

The Message in String representation

[src]

Writes the Message to a file

Arguments

  • destination - The destination file path to which will be written