ogn_parser/
comment.rs

1use std::str::FromStr;
2
3use serde::Serialize;
4
5use crate::AprsError;
6
7#[derive(PartialEq, Debug, Clone, Serialize)]
8pub struct Comment {
9    pub comment: String,
10}
11
12impl FromStr for Comment {
13    type Err = AprsError;
14
15    fn from_str(s: &str) -> Result<Self, Self::Err> {
16        Ok(Comment {
17            comment: s.to_string(),
18        })
19    }
20}