pub struct StdAddrBase64Repr<const URL_SAFE: bool = true>;Expand description
A helper struct to work with base64-encoded addresses.
Implementations§
Source§impl<const URL_SAFE: bool> StdAddrBase64Repr<URL_SAFE>
impl<const URL_SAFE: bool> StdAddrBase64Repr<URL_SAFE>
Sourcepub fn serialize<S>(addr: &StdAddr, serializer: S) -> Result<S::Ok, S::Error>where
S: Serializer,
pub fn serialize<S>(addr: &StdAddr, serializer: S) -> Result<S::Ok, S::Error>where
S: Serializer,
Serializes address into a base64-encoded string.
Sourcepub fn deserialize<'de, D>(deserializer: D) -> Result<StdAddr, D::Error>where
D: Deserializer<'de>,
pub fn deserialize<'de, D>(deserializer: D) -> Result<StdAddr, D::Error>where
D: Deserializer<'de>,
Deserializes address as a base64-encoded string.
Auto Trait Implementations§
impl<const URL_SAFE: bool> Freeze for StdAddrBase64Repr<URL_SAFE>
impl<const URL_SAFE: bool> RefUnwindSafe for StdAddrBase64Repr<URL_SAFE>
impl<const URL_SAFE: bool> Send for StdAddrBase64Repr<URL_SAFE>
impl<const URL_SAFE: bool> Sync for StdAddrBase64Repr<URL_SAFE>
impl<const URL_SAFE: bool> Unpin for StdAddrBase64Repr<URL_SAFE>
impl<const URL_SAFE: bool> UnwindSafe for StdAddrBase64Repr<URL_SAFE>
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