Struct cfx_rpc_cfx_types::address::RpcAddress
source · pub struct RpcAddress {
pub base32_address: String,
pub hex_address: H160,
pub network: Network,
}
Expand description
This is the address type used in Rpc. It deserializes user’s Rpc input, or it prepares the base32 address for Rpc output.
Fields§
§base32_address: String
It’s user’s input or encoded output address.
hex_address: H160
§network: Network
Implementations§
Trait Implementations§
source§impl Clone for RpcAddress
impl Clone for RpcAddress
source§fn clone(&self) -> RpcAddress
fn clone(&self) -> RpcAddress
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 RpcAddress
impl Debug for RpcAddress
source§impl<'a> Deserialize<'a> for RpcAddress
impl<'a> Deserialize<'a> for RpcAddress
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<RpcAddress> for H160
impl From<RpcAddress> for H160
source§fn from(x: RpcAddress) -> Self
fn from(x: RpcAddress) -> Self
Converts to this type from the input type.
source§impl Hash for RpcAddress
impl Hash for RpcAddress
source§impl PartialEq for RpcAddress
impl PartialEq for RpcAddress
source§fn eq(&self, other: &RpcAddress) -> bool
fn eq(&self, other: &RpcAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RpcAddress
impl Serialize for RpcAddress
impl Eq for RpcAddress
impl StructuralPartialEq for RpcAddress
Auto Trait Implementations§
impl RefUnwindSafe for RpcAddress
impl Send for RpcAddress
impl Sync for RpcAddress
impl Unpin for RpcAddress
impl UnwindSafe for RpcAddress
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