Julio Biason
2 years ago
7 changed files with 54 additions and 3 deletions
@ -0,0 +1,11 @@
|
||||
//! Versions of the attachments.
|
||||
|
||||
use serde::Deserialize; |
||||
use serde::Serialize; |
||||
|
||||
#[derive(Deserialize, Serialize)] |
||||
pub struct IncomingAttachment { |
||||
name: String, |
||||
content_type: String, |
||||
content_base64: String, |
||||
} |
@ -0,0 +1,14 @@
|
||||
//! Versions of the entry.
|
||||
|
||||
use serde::Deserialize; |
||||
use serde::Serialize; |
||||
|
||||
#[derive(Deserialize, Serialize)] |
||||
pub struct IncomingEntry { |
||||
title: String, |
||||
content: String, |
||||
source: String, |
||||
|
||||
meta: Vec<super::meta::IncomingMeta>, |
||||
attachments: Vec<super::attachment::IncomingAttachment>, |
||||
} |
@ -0,0 +1,10 @@
|
||||
//! Version of the entry meta information.
|
||||
|
||||
use serde::Deserialize; |
||||
use serde::Serialize; |
||||
|
||||
#[derive(Deserialize, Serialize)] |
||||
pub struct IncomingMeta { |
||||
name: String, |
||||
value: String, |
||||
} |
@ -1,3 +1,6 @@
|
||||
//! Store own domain.
|
||||
|
||||
pub mod attachment; |
||||
pub mod entry; |
||||
pub mod meta; |
||||
pub mod options; |
||||
|
Loading…
Reference in new issue