pub struct SuiAddress(pub [u8; 32]);Expand description
A 32-byte Sui address.
Tuple Fields§
§0: [u8; 32]Implementations§
Source§impl SuiAddress
impl SuiAddress
Sourcepub const ZERO: SuiAddress
pub const ZERO: SuiAddress
The zero address (0x000…000). Commonly used as the sender for
dev_inspect_transaction_block calls that only need read access.
Sourcepub fn from_bytes(b: [u8; 32]) -> Self
pub fn from_bytes(b: [u8; 32]) -> Self
Construct from a 32-byte array.
Trait Implementations§
Source§impl Clone for SuiAddress
impl Clone for SuiAddress
Source§fn clone(&self) -> SuiAddress
fn clone(&self) -> SuiAddress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SuiAddress
impl Debug for SuiAddress
Source§impl<'de> Deserialize<'de> for SuiAddress
impl<'de> Deserialize<'de> for SuiAddress
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 SuiAddress
impl Display for SuiAddress
Source§impl FromStr for SuiAddress
impl FromStr for SuiAddress
Source§impl Hash for SuiAddress
impl Hash for SuiAddress
Source§impl PartialEq for SuiAddress
impl PartialEq for SuiAddress
Source§fn eq(&self, other: &SuiAddress) -> bool
fn eq(&self, other: &SuiAddress) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SuiAddress
impl Serialize for SuiAddress
impl Copy for SuiAddress
impl Eq for SuiAddress
impl StructuralPartialEq for SuiAddress
Auto Trait Implementations§
impl Freeze for SuiAddress
impl RefUnwindSafe for SuiAddress
impl Send for SuiAddress
impl Sync for SuiAddress
impl Unpin for SuiAddress
impl UnsafeUnpin for SuiAddress
impl UnwindSafe for SuiAddress
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