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 Copy for TxKind
§impl<'de> Deserialize<'de> for TxKind
Available on crate feature serde only.
impl<'de> Deserialize<'de> for TxKind
Available on crate feature
serde only.§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 Eq for TxKind
§impl Serialize for TxKind
Available on crate feature serde only.
impl Serialize for TxKind
Available on crate feature
serde only.§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 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 UnsafeUnpin 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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
Compare self to
key and return true if they are equal.