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>
Encode as a string
fn from_string(s: String) -> Result<Bech32, Error>
Decode from a string
Trait Implementations
impl PartialEq for Bech32
[src]
fn eq(&self, __arg_0: &Bech32) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Bech32) -> bool
This method tests for !=
.
impl Debug for Bech32
[src]
impl Clone for Bech32
[src]
fn clone(&self) -> Bech32
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more