use crate::JID; pub struct Message { from: Option, id: Option, to: Option, r#type: Option, // children subject: Option, body: Option, thread: Option, lang: Option, } pub enum MessageType { Chat, Error, Groupchat, Headline, Normal, } pub struct Body { lang: Option, body: Option, } pub struct Subject { lang: Option, subject: Option, } pub struct Thread { // TODO: NOT DONE parent: Option, thread: Option, }