Trait IntoBech32

Source
pub trait IntoBech32 {
    // Required methods
    fn into_bech32(self) -> Addr;
    fn into_bech32_with_prefix(self, prefix: &'static str) -> Addr;
}
Expand description

Defines conversions to Bech32 compatible addresses.

Required Methods§

Source

fn into_bech32(self) -> Addr

Converts into Addr containing a string compatible with Bech32 format with default prefix.

Source

fn into_bech32_with_prefix(self, prefix: &'static str) -> Addr

Converts into Addr containing a string compatible with Bech32 format with custom prefix.

Implementations on Foreign Types§

Source§

impl IntoBech32 for &str

Source§

fn into_bech32(self) -> Addr

Converts &str into Addr containing a string compatible with Bech32 format with default prefix.

Source§

fn into_bech32_with_prefix(self, prefix: &'static str) -> Addr

Converts &str into Addr containing a string compatible with Bech32 format with custom prefix.

Implementors§