tzf_rs/gen/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use prost::Message;

pub mod pb;
pub use pb::*;

impl TryFrom<Vec<u8>> for Timezones {
    type Error = anyhow::Error;

    fn try_from(value: Vec<u8>) -> Result<Self, Self::Error> {
        Ok(Self::decode(&value[..])?)
    }
}

impl TryFrom<Vec<u8>> for PreindexTimezones {
    type Error = anyhow::Error;

    fn try_from(value: Vec<u8>) -> Result<Self, Self::Error> {
        Ok(Self::decode(&value[..])?)
    }
}