pub struct BytesArray(pub Vec<u8>);
Expand description
A wrapper type for array of bytes.
Implements Tokenizable
so can be used to retrieve data from Solidity
contracts returning byte8[]
.
Tuple Fields§
§0: Vec<u8>
Trait Implementations§
Source§impl Clone for BytesArray
impl Clone for BytesArray
Source§fn clone(&self) -> BytesArray
fn clone(&self) -> BytesArray
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 BytesArray
impl Debug for BytesArray
Source§impl Default for BytesArray
impl Default for BytesArray
Source§fn default() -> BytesArray
fn default() -> BytesArray
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BytesArray
impl<'de> Deserialize<'de> for BytesArray
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 Hash for BytesArray
impl Hash for BytesArray
Source§impl PartialEq for BytesArray
impl PartialEq for BytesArray
Source§impl Serialize for BytesArray
impl Serialize for BytesArray
Source§impl Tokenizable for BytesArray
impl Tokenizable for BytesArray
Source§fn into_token(self) -> Token
fn into_token(self) -> Token
Converts a specified type back into token.
impl Eq for BytesArray
impl StructuralPartialEq for BytesArray
impl TokenizableItem for BytesArray
Auto Trait Implementations§
impl Freeze for BytesArray
impl RefUnwindSafe for BytesArray
impl Send for BytesArray
impl Sync for BytesArray
impl Unpin for BytesArray
impl UnwindSafe for BytesArray
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> Detokenize for Twhere
T: Tokenizable,
impl<T> Detokenize for Twhere
T: Tokenizable,
Source§impl<T> Tokenize for Twhere
T: Tokenizable,
impl<T> Tokenize for Twhere
T: Tokenizable,
Source§fn into_tokens(self) -> Vec<Token>
fn into_tokens(self) -> Vec<Token>
Convert to list of tokens