/// The [`Message`] struct is used when displaying
/// a message to a user.
pubstructMessage{/// This will display a title in the top-left
/// of the message. If not present, no title
/// is shown.
pubtitle:Option<String>,
/// This is the main body of the message.
pubtext: String,
}implMessage{/// Creates a message with the given text.
pubfnnew(text: String)-> Message{
Message { title:None, text }}/// Builder method to add a title to an existing Message.
////// ```rust
/// use termgame::Message;
/// Message::new(String::from("MyMessage"))
/// .title(String::from("Title"));
/// ```
pubfntitle(mutself, title: String)-> Message{self.title =Some(title);self}}