[−][src]Struct wagyu_ethereum::transaction::EthereumTransaction
Represents an Ethereum transaction
Trait Implementations
impl<N: Clone + EthereumNetwork> Clone for EthereumTransaction<N>
[src]
fn clone(&self) -> EthereumTransaction<N>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<N: Debug + EthereumNetwork> Debug for EthereumTransaction<N>
[src]
impl<N: EthereumNetwork> Display for EthereumTransaction<N>
[src]
impl<N: Eq + EthereumNetwork> Eq for EthereumTransaction<N>
[src]
impl<N: EthereumNetwork> FromStr for EthereumTransaction<N>
[src]
type Err = TransactionError
The associated error which can be returned from parsing.
fn from_str(transaction: &str) -> Result<Self, Self::Err>
[src]
impl<N: Hash + EthereumNetwork> Hash for EthereumTransaction<N>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<N: Ord + EthereumNetwork> Ord for EthereumTransaction<N>
[src]
fn cmp(&self, other: &EthereumTransaction<N>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<N: PartialEq + EthereumNetwork> PartialEq<EthereumTransaction<N>> for EthereumTransaction<N>
[src]
fn eq(&self, other: &EthereumTransaction<N>) -> bool
[src]
fn ne(&self, other: &EthereumTransaction<N>) -> bool
[src]
impl<N: PartialOrd + EthereumNetwork> PartialOrd<EthereumTransaction<N>> for EthereumTransaction<N>
[src]
fn partial_cmp(&self, other: &EthereumTransaction<N>) -> Option<Ordering>
[src]
fn lt(&self, other: &EthereumTransaction<N>) -> bool
[src]
fn le(&self, other: &EthereumTransaction<N>) -> bool
[src]
fn gt(&self, other: &EthereumTransaction<N>) -> bool
[src]
fn ge(&self, other: &EthereumTransaction<N>) -> bool
[src]
impl<N: EthereumNetwork> StructuralEq for EthereumTransaction<N>
[src]
impl<N: EthereumNetwork> StructuralPartialEq for EthereumTransaction<N>
[src]
impl<N: EthereumNetwork> Transaction for EthereumTransaction<N>
[src]
type Address = EthereumAddress
type Format = EthereumFormat
type PrivateKey = EthereumPrivateKey
type PublicKey = EthereumPublicKey
type TransactionId = EthereumTransactionId
type TransactionParameters = EthereumTransactionParameters
fn new(
parameters: &Self::TransactionParameters
) -> Result<Self, TransactionError>
[src]
parameters: &Self::TransactionParameters
) -> Result<Self, TransactionError>
Returns an unsigned transaction given the transaction parameters.
fn sign(&self, private_key: &Self::PrivateKey) -> Result<Self, TransactionError>
[src]
Returns a signed transaction given the private key of the sender. https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md
fn from_transaction_bytes(
transaction: &Vec<u8>
) -> Result<Self, TransactionError>
[src]
transaction: &Vec<u8>
) -> Result<Self, TransactionError>
Returns a transaction given the transaction bytes. https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md
fn to_transaction_bytes(&self) -> Result<Vec<u8>, TransactionError>
[src]
Returns the transaction in bytes. https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md
fn to_transaction_id(&self) -> Result<Self::TransactionId, TransactionError>
[src]
Returns the hash of the signed transaction, if the signature is present. Otherwise, returns the hash of the raw transaction.
Auto Trait Implementations
impl<N> RefUnwindSafe for EthereumTransaction<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for EthereumTransaction<N>
impl<N> Sync for EthereumTransaction<N>
impl<N> Unpin for EthereumTransaction<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for EthereumTransaction<N> where
N: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,