Trait IntoBech32m

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

Defines conversions to Bech32m compatible addresses.

Required Methods§

Source

fn into_bech32m(self) -> Addr

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

Source

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

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

Implementations on Foreign Types§

Source§

impl IntoBech32m for &str

Source§

fn into_bech32m(self) -> Addr

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

Source§

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

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

Implementors§