parent
572bb748a3
commit
7b71b4fdcb
@ -1,7 +1,17 @@
|
||||
use super::*;
|
||||
use cryptohelpers::sha256::Sha256Hash;
|
||||
|
||||
#[derive(Debug)]
|
||||
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<String>,
|
||||
email: Option<String>,
|
||||
|
||||
body: hard_format::formats::PEMFormattedString,
|
||||
signature: Option<hard_format::formats::PEMFormattedString>,
|
||||
hash: Sha256Hash,
|
||||
}
|
||||
|
Loading…
Reference in new issue