make timestamp field an option for SsbMessageKVT and derive eq where partialeq is already derived

This commit is contained in:
glyph 2022-11-18 15:04:50 +02:00
parent 9981b64bb2
commit 195eeb523c
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ pub struct SsbMessageValue {
}
/// Message content types.
#[derive(Debug, PartialEq)]
#[derive(Debug, Eq, PartialEq)]
#[allow(missing_docs)]
pub enum SsbMessageContentType {
About,
@ -99,6 +99,6 @@ impl SsbMessageValue {
pub struct SsbMessageKVT {
pub key: String,
pub value: SsbMessageValue,
pub timestamp: f64,
pub timestamp: Option<f64>,
pub rts: Option<f64>,
}