Struct bech32::Bech32
[−]
[src]
pub struct Bech32 { pub hrp: String, pub data: Vec<u8>, }
Grouping structure for the human-readable part and the data part of decoded Bech32 string.
Fields
hrp: String
Human-readable part
data: Vec<u8>
Data payload
Methods
impl Bech32
[src]
fn to_string(&self) -> Result<String, Error>
[src]
Encode as a string
fn from_string(s: String) -> Result<Bech32, Error>
[src]
Decode from a string
Trait Implementations
impl PartialEq for Bech32
[src]
fn eq(&self, __arg_0: &Bech32) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Bech32) -> bool
[src]
This method tests for !=
.