postcard_schema/impls/
chrono_v0_4.rs

1//! Implementations of the [`Schema`] trait for the `chrono` crate v0.4
2
3use crate::{schema::NamedType, Schema};
4
5#[cfg_attr(docsrs, doc(cfg(feature = "chrono-v0_4")))]
6impl<Tz: chrono_v0_4::TimeZone> Schema for chrono_v0_4::DateTime<Tz> {
7    const SCHEMA: &'static NamedType = &NamedType {
8        name: "DateTime",
9        ty: <&str>::SCHEMA.ty,
10    };
11}