aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-01-13 13:00:25 +0100
committerHarald Eilertsen <haraldei@anduin.net>2024-01-13 13:00:25 +0100
commitd9fa0a00889e40baf5289a65e17d47727b7c506e (patch)
tree7701c959a0351f381e06fa287f5f1b525f889485 /src/stream.rs
parenta43422b4d4ed4d89e1ca8fc316dd372e5dd9cb34 (diff)
downloadrust-zotapi-d9fa0a00889e40baf5289a65e17d47727b7c506e.tar.gz
rust-zotapi-d9fa0a00889e40baf5289a65e17d47727b7c506e.tar.bz2
rust-zotapi-d9fa0a00889e40baf5289a65e17d47727b7c506e.zip
Add stream::DateTime struct
As the date and time returned in the json data from the zot stream api's neither contains any timezone information, nor follow the RFC3339 format expected by Chrono, we need to make our own date time type, and handle deserialization ourselves.
Diffstat (limited to 'src/stream.rs')
-rw-r--r--src/stream.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stream.rs b/src/stream.rs
index 438ef0f..0348822 100644
--- a/src/stream.rs
+++ b/src/stream.rs
@@ -11,9 +11,11 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
+mod datetime;
mod streamitem;
mod verb;
+pub use datetime::DateTime;
pub use streamitem::{
StreamItem,
StreamItemEncoding,