tonstruct 0.0.3

TON blockchain types serialization tool for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
use tonlib_core::cell::{Cell, CellParser};

pub trait FromCell: Sized {
    fn from_cell(cell: Cell) -> anyhow::Result<Self> {
        let mut parser = cell.parser();
        Self::load(&mut parser)
    }

    fn load(parser: &mut CellParser) -> anyhow::Result<Self>;
}