This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[derive(Debug)] | |
struct CM { | |
id: i32, | |
topic_id: i32, | |
} | |
#[derive(Debug)] | |
struct TM { | |
id: i32, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq)] | |
#[serde(rename_all="snake_case")] | |
pub enum State { | |
Pending, | |
Sending, | |
Sent, | |
Failed, | |
} | |
impl fmt::Display for State { |