borsh 1.6.1

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

#[test]
fn ip_addr_schema() {
    let actual_name = IpAddr::declaration();
    assert_eq!("IpAddr", actual_name);
    let mut defs = Default::default();
    IpAddr::add_definitions_recursively(&mut defs);
    insta::assert_snapshot!(format!("{:#?}", defs));
}