cream-core 0.2.2

This crate contains the core types and traits for the `cream` crate.
Documentation
1
2
3
4
5
6
use serde::{Deserialize, Serialize};
use time::OffsetDateTime;

/// Wrapper around `time::OffsetDateTime` which serializes according to RFC3339.
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct DateTime(#[serde(with = "time::serde::rfc3339")] pub OffsetDateTime);