near-api-types 0.8.6

Rust types library to interact with NEAR Protocol via RPC API
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub mod near_gas_as_u64 {
    use near_gas::NearGas;
    use serde::Serializer;

    pub fn serialize<S>(value: &NearGas, serializer: S) -> Result<S::Ok, S::Error>
    where
        S: Serializer,
    {
        serializer.serialize_u64(value.as_gas())
    }
}