1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// this file is @generated
use std::fmt;
use serde_repr::{Deserialize_repr, Serialize_repr};
/// The sending status of the message:
///
/// - Success = 0
/// - Pending = 1
/// - Fail = 2
/// - Sending = 3
#[repr(i64)]
#[derive(
Clone,
Copy,
Debug,
Default,
Eq,
PartialEq,
Ord,
PartialOrd,
Hash,
Serialize_repr,
Deserialize_repr,
)]
pub enum MessageStatus {
#[default]
Success = 0,
Pending = 1,
Fail = 2,
Sending = 3,
}
impl fmt::Display for MessageStatus {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", *self as i64)
}
}