Enum TxKind
pub enum TxKind {
Create,
Call(Address),
}
Expand description
The to
field of a transaction. Either a target address, or empty for a
contract creation.
Variants§
Create
A transaction that creates a contract.
Call(Address)
A transaction that calls a contract or transfer.
Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for TxKind
impl<'de> Deserialize<'de> for TxKind
§fn deserialize<D>(
deserializer: D,
) -> Result<TxKind, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<TxKind, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for TxKind
impl Serialize for TxKind
§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for TxKind
impl Eq for TxKind
impl StructuralPartialEq for TxKind
Auto Trait Implementations§
impl Freeze for TxKind
impl RefUnwindSafe for TxKind
impl Send for TxKind
impl Sync for TxKind
impl Unpin for TxKind
impl UnwindSafe for TxKind
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more