Added MessageIndex type doc header

This commit is contained in:
Daniel Sanchez Quiros 2022-10-09 09:09:55 -05:00
parent 56a9cc1f39
commit 6ff110bbe8

View File

@ -230,10 +230,11 @@ pub struct PagingOptions {
pub forward: bool, pub forward: bool,
} }
/// Pagination index type
#[derive(Clone, Serialize, Deserialize)] #[derive(Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub struct MessageIndex { pub struct MessageIndex {
/// Hash of the message at this [`MessageIndex`] /// Hash of the message at this [``MessageIndex`]
pub digest: String, pub digest: String,
/// UNIX timestamp in nanoseconds at which the message at this [`MessageIndex`] was received /// UNIX timestamp in nanoseconds at which the message at this [`MessageIndex`] was received
pub receiver_time: usize, pub receiver_time: usize,