pub fn parse_ml(text: &str) -> Result<Ml<'_>>Expand description
Parse ml text that eterm server response.
ยงExamples
let text = r"MULTI
8L9681 /08SEP C
KHGNGQ
NIL
URCKHG
001 0DILIAYIAILI HP3M9L T HX1 VVV211 07SEP K T
002 1MEIHEREYIABULAI+ KYAH8R T RR1 VVV211 07SEP K O ST
URCNGQ
NIL
TOTAL NUMBER 1";
if let Ok(ml) = eterm_parser::parse_ml(text) {
assert_eq!(ml.flight_no, Some("8L9681"));
} else {
panic!("ml parse error");
}