aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream/streamitem.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream/streamitem.rs')
-rw-r--r--src/stream/streamitem.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/stream/streamitem.rs b/src/stream/streamitem.rs
index 1934dfe..514cae3 100644
--- a/src/stream/streamitem.rs
+++ b/src/stream/streamitem.rs
@@ -7,6 +7,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
+use super::datetime::DateTime;
use super::verb::Verb;
use serde::Deserialize;
@@ -32,6 +33,16 @@ pub struct StreamItem {
pub item_type: StreamItemType,
pub encoding: StreamItemEncoding,
+ /*
+ * Date and time fields for when the item was
+ * created, last edited or commented, as well as
+ * when/if it expires.
+ */
+ pub created: DateTime,
+ pub edited: DateTime,
+ pub expires: DateTime,
+ pub commented: DateTime,
+
pub verb: Verb,
pub title: String,