pub struct MOTD { title: Option, } impl MOTD { pub fn new(motd_title: String) -> MOTD { return MOTD { title: Some(String::from(motd_title)), }; } pub fn print(&self) { println!("[*] {}", &self.title.as_ref().unwrap().trim()) } }