ferrischat_common 0.3.0

Common utilities and types for FerrisChat
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(Deserialize, Serialize, Clone)]
pub struct SuccessJson {
    pub reason: String,
}

impl SuccessJson {
    /// Create a new object of `Self` with the provided reason.
    ///
    /// This exists mainly to make the code easier to read.
    #[inline]
    #[must_use]
    pub const fn new(reason: String) -> Self {
        Self { reason }
    }
}