pub struct SdkAddress(pub Address);
Expand description
Wrapper around a regular Address.
Provides:
- serde serialization/deserialization as bech32
- conversions to/from bech32
It should only be used in the sdk, to serialize/deserialize to JSON as bech32.
It exists primarily because it is currently inconvenient to provide bech32 and serde functionality to the base Address directly.
Tuple Fields§
§0: Address
Implementations§
Source§impl SdkAddress
impl SdkAddress
Trait Implementations§
Source§impl Clone for SdkAddress
impl Clone for SdkAddress
Source§fn clone(&self) -> SdkAddress
fn clone(&self) -> SdkAddress
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SdkAddress
impl Debug for SdkAddress
Source§impl Default for SdkAddress
impl Default for SdkAddress
Source§impl<'de> Deserialize<'de> for SdkAddress
impl<'de> Deserialize<'de> for SdkAddress
Source§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
Source§impl Display for SdkAddress
impl Display for SdkAddress
Source§impl From<Address> for SdkAddress
impl From<Address> for SdkAddress
Source§impl From<SdkAddress> for Address
impl From<SdkAddress> for Address
Source§fn from(value: SdkAddress) -> Self
fn from(value: SdkAddress) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SdkAddress
impl RefUnwindSafe for SdkAddress
impl Send for SdkAddress
impl Sync for SdkAddress
impl Unpin for SdkAddress
impl UnwindSafe for SdkAddress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more