Struct ethereum::LegacyTransaction
source · [−]pub struct LegacyTransaction {
pub nonce: U256,
pub gas_price: U256,
pub gas_limit: U256,
pub action: TransactionAction,
pub value: U256,
pub input: Vec<u8>,
pub signature: TransactionSignature,
}Fields
nonce: U256gas_price: U256gas_limit: U256action: TransactionActionvalue: U256input: Vec<u8>signature: TransactionSignatureImplementations
Trait Implementations
sourceimpl Clone for LegacyTransaction
impl Clone for LegacyTransaction
sourcefn clone(&self) -> LegacyTransaction
fn clone(&self) -> LegacyTransaction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for LegacyTransaction
impl Debug for LegacyTransaction
sourceimpl Decodable for LegacyTransaction
impl Decodable for LegacyTransaction
sourcefn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>
fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>
Decode a value from RLP bytes
sourceimpl Encodable for LegacyTransaction
impl Encodable for LegacyTransaction
sourceimpl From<LegacyTransaction> for LegacyTransactionMessage
impl From<LegacyTransaction> for LegacyTransactionMessage
sourcefn from(t: TransactionV0) -> Self
fn from(t: TransactionV0) -> Self
Performs the conversion.
sourceimpl From<LegacyTransaction> for TransactionV1
impl From<LegacyTransaction> for TransactionV1
sourcefn from(t: LegacyTransaction) -> Self
fn from(t: LegacyTransaction) -> Self
Performs the conversion.
sourceimpl From<LegacyTransaction> for TransactionV2
impl From<LegacyTransaction> for TransactionV2
sourcefn from(t: LegacyTransaction) -> Self
fn from(t: LegacyTransaction) -> Self
Performs the conversion.
sourceimpl PartialEq<LegacyTransaction> for LegacyTransaction
impl PartialEq<LegacyTransaction> for LegacyTransaction
sourcefn eq(&self, other: &LegacyTransaction) -> bool
fn eq(&self, other: &LegacyTransaction) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &LegacyTransaction) -> bool
fn ne(&self, other: &LegacyTransaction) -> bool
This method tests for !=.
impl Eq for LegacyTransaction
impl StructuralEq for LegacyTransaction
impl StructuralPartialEq for LegacyTransaction
Auto Trait Implementations
impl RefUnwindSafe for LegacyTransaction
impl Send for LegacyTransaction
impl Sync for LegacyTransaction
impl Unpin for LegacyTransaction
impl UnwindSafe for LegacyTransaction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more