Struct ckb_client::address::OldAddress
source · pub struct OldAddress { /* private fields */ }Implementations§
source§impl Address
impl Address
pub fn new_default(hash: H160) -> Address
pub fn hash(&self) -> &H160
pub fn lock_script(&self, code_hash: H256) -> Script
pub fn from_pubkey( format: AddressFormat, pubkey: &Pubkey, ) -> Result<Address, String>
pub fn from_lock_arg(bytes: &[u8]) -> Result<Address, String>
pub fn from_input(network: NetworkType, input: &str) -> Result<Address, String>
pub fn display_with_prefix(&self, network: NetworkType) -> String
pub fn to_string(&self, network: NetworkType) -> String
👎Deprecated since 0.25.0: Name conflicts with the inherent to_string method. Use display_with_prefix instead.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Address
impl<'de> Deserialize<'de> for Address
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 PartialEq for Address
impl PartialEq for Address
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.