ion-binary-rs 0.8.13

Pure Rust parser, encoder and hasher for Amazon's Ion binary format.
Documentation
// different years
[
    2007T,
    2008T,
    2009T,
]

// different months
[
    2001-07T,
    2001-08T,
    2001-09T,
]

// different days
[
    2001-01-07T,
    2001-01-08T,
    2001-01-09T,
]

// different hours
[
    2001-01-01T07:01Z,
    2001-01-01T08:01Z,
    2001-01-01T09:01Z,
]

// different minutes
[
    2001-01-01T01:07Z,
    2001-01-01T01:08Z,
    2001-01-01T01:09Z,
]

// different seconds
[
    2001-01-01T01:01:07Z,
    2001-01-01T01:01:08Z,
    2001-01-01T01:01:09Z,
]

// different fractional seconds
[
    2001-01-01T01:01:01.07Z,
    2001-01-01T01:01:01.08Z,
    2001-01-01T01:01:01.09Z,
]

// different local offsets
[
    2001-01-01T01:01-00:00,             // unknown local offset
    2001-01-01T01:01-03:00,             // behind UTC
    2001-01-01T01:01-02:00,             // behind UTC
    2001-01-01T01:01-01:00,             // behind UTC
    2001-01-01T01:01+00:00,             // UTC
    //2001-01-01T01:01Z                 // same as UTC above
    2001-01-01T01:01+01:00,             // ahead of UTC
    2001-01-01T01:01+02:00,             // ahead of UTC
    2001-01-01T01:01+03:00,             // ahead of UTC
]

// same points in time, different precisions and/or local offsets
[
    2001T,
    2001-01T,
    2001-01-01T,
    //2001-01-01T00:00Z,                // same as 2001-01-01T00:00+00:00 below
    2001-01-01T00:00-00:00,
    2001-01-01T00:00+00:00,
    //2001-01-01T00:00:00Z,             // same as 2001-01-01T00:00:00+00:00 below
    2001-01-01T00:00:00-00:00,
    2001-01-01T00:00:00+00:00,
    //2001-01-01T00:00:00.0Z,           // same as 2001-01-01T00:00:00.0+00:00 below
    2001-01-01T00:00:00.0-00:00,
    2001-01-01T00:00:00.0+00:00,
    //2001-01-01T00:00:00.00Z,          // same as 2001-01-01T00:00:00.00+00:00 below
    2001-01-01T00:00:00.00-00:00,
    2001-01-01T00:00:00.00+00:00,
    //2001-01-01T00:00:00.000Z,         // same as 2001-01-01T00:00:00.000+00:00 below
    2001-01-01T00:00:00.000-00:00,
    2001-01-01T00:00:00.000+00:00,
]

// same precisions and local offsets, different points in time
[
    1111-11-11T11:11:11.111-11:11,      // control

    1112-11-11T11:11:11.111-11:11,
    1111-12-11T11:11:11.111-11:11,
    1111-11-12T11:11:11.111-11:11,
    1111-11-11T12:11:11.111-11:11,
    1111-11-11T11:12:11.111-11:11,
    1111-11-11T11:11:12.111-11:11,
    1111-11-11T11:11:11.112-11:11,
    1111-11-11T11:11:11.111-12:11,
    1111-11-11T11:11:11.111-11:12,
]