Struct deep_space::address::Address [−][src]
pub struct Address { /* fields omitted */ }Expand description
An address that’s derived from a given PublicKey
Implementations
In cases where it’s impossible to know the Bech32 prefix we fall back to this value
pub fn from_bytes<T: Into<String>>(
bytes: [u8; 20],
prefix: T
) -> Result<Address, AddressError>
Returns bytes of a given Address as a slice of bytes
Obtain a bech32 encoded address with a given prefix.
hrp- A prefix for bech32 encoding. The convention for addresses in Cosmos iscosmos. note this does not update the prefix stored in the address
Parse a bech32 encoded address
s- A bech32 encoded address
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Address
impl UnwindSafe for Address
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more