docs: function/struct comments

This commit is contained in:
Greg Heartsfield
2022-02-12 09:29:35 -06:00
parent fa66a0265e
commit 26a0ce2b32
5 changed files with 21 additions and 10 deletions
+3 -1
View File
@@ -1,4 +1,6 @@
//! Subscription close request parsing
//!
//! Representation and parsing of `CLOSE` messages sent from clients.
use crate::error::{Error, Result};
use serde::{Deserialize, Serialize};
@@ -11,7 +13,7 @@ pub struct CloseCmd {
id: String,
}
/// Close command parsed
/// Identifier of the subscription to be closed.
#[derive(Serialize, Deserialize, PartialEq, Debug, Clone)]
pub struct Close {
/// The subscription identifier being closed.