stellar-xdr 27.0.0

Stellar XDR types, encoding, and decoding.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![cfg(feature = "alloc")]

use stellar_xdr::{Hash, TransactionEnvelope, Uint32};

#[test]
fn default() {
    let v = Uint32::default();
    assert_eq!(v, 0);

    let v = Hash::default();
    assert_eq!(v, Hash([0; 32]));

    let v = TransactionEnvelope::default();
    assert!(matches!(v, TransactionEnvelope::Tx(_)));
}