borsh 1.6.1

Binary Object Representation Serializer for Hashing
Documentation
1
2
3
4
5
6
7
8
9
use crate::common_macro::schema_imports::*;

#[test]
fn boxed_schema() {
    let boxed_declaration = Box::<str>::declaration();
    assert_eq!("String", boxed_declaration);
    let boxed_declaration = Box::<[u8]>::declaration();
    assert_eq!("Vec<u8>", boxed_declaration);
}