mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
Mark the ChatInfo struct non_exhaustive
This is a new feature in Rust 1.40, it means users outside the crate will not be able to create these structs, allowing us to add fields without breaking the public API.
This commit is contained in:
committed by
Alexander Krotov
parent
91eea03b18
commit
2990a1c255
@@ -523,6 +523,7 @@ impl Chat {
|
||||
|
||||
/// The current state of a chat.
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[non_exhaustive]
|
||||
pub struct ChatInfo {
|
||||
/// The chat ID.
|
||||
pub id: u32,
|
||||
|
||||
Reference in New Issue
Block a user