use super::*; use cryptohelpers::sha256::Sha256Hash; use hard_format::formats::PEMFormattedString; use tripcode::Tripcode; id_type!(PostID; "A unique post ID"); /// A single completed post #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Post { id: PostID, name: Option, tripcode: Option, email: Option, body: PEMFormattedString, signature: Option, /// Hash of the body hash: Sha256Hash, }