diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-11-27 12:58:34 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-11-27 12:58:34 +0100 |
commit | fa3e9812524fb2322adb181b01852f61980b3fe0 (patch) | |
tree | 14a7cfbca7c342912913039b1c9cfc38b71057ab /src/types/payload.rs | |
parent | a2770c67fa450598d8420b3a4b5243969ecdd251 (diff) |
Implement putting in a text block and fetching it again
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/types/payload.rs')
-rw-r--r-- | src/types/payload.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/types/payload.rs b/src/types/payload.rs index 5b6cfb1..e6ddb0f 100644 --- a/src/types/payload.rs +++ b/src/types/payload.rs @@ -1,12 +1,16 @@ use crate::types::DateTime; -#[derive(Debug, Eq, PartialEq, serde::Serialize, serde::Deserialize)] +#[derive(Debug, Eq, PartialEq, serde::Serialize, serde::Deserialize, getset::Getters)] pub struct Payload { // TODO: Make this a mime::Mime, but as this type does not impl Serialize/Deserialize, we // cannot do this trivially yet + #[getset(get = "pub")] mime: String, + #[getset(get = "pub")] timestamp: DateTime, + + #[getset(get = "pub")] content: crate::cid::Cid, } |