packs 0.2.0

A PackStream implementation written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::*;

#[derive(Debug, Clone, PartialEq, Pack, Unpack)]
#[tag = 0x66]
pub struct DateTimeZoneId {
    pub seconds: i64,
    pub nanoseconds: i64,
    pub tz_id: i64,
}

impl DateTimeZoneId {
    pub fn utc_nanoseconds(&self) -> i64 {
        // (seconds * 1000000000) + nanoseconds - get_offset_in_nanoseconds(tz_id)
        todo!()
    }
}