postcard_schema/impls/
chrono_v0_4.rs

1
2
3
4
5
6
7
8
9
10
11
//! Implementations of the [`Schema`] trait for the `chrono` crate v0.4

use crate::{schema::NamedType, Schema};

#[cfg_attr(docsrs, doc(cfg(feature = "chrono-v0_4")))]
impl<Tz: chrono_v0_4::TimeZone> Schema for chrono_v0_4::DateTime<Tz> {
    const SCHEMA: &'static NamedType = &NamedType {
        name: "DateTime",
        ty: <&str>::SCHEMA.ty,
    };
}