Struct cfx_packing_pool::MockTransaction
source · pub struct MockTransaction {
pub id: usize,
pub sender: u64,
pub nonce: u64,
pub gas_price: u64,
pub gas_limit: u64,
}
Expand description
A minimal implementation of the PackingPoolTransaction
trait for testing
purposes.
Fields§
§id: usize
§sender: u64
§nonce: u64
§gas_price: u64
§gas_limit: u64
Trait Implementations§
source§impl Clone for MockTransaction
impl Clone for MockTransaction
source§fn clone(&self) -> MockTransaction
fn clone(&self) -> MockTransaction
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 MockTransaction
impl Debug for MockTransaction
source§impl Default for MockTransaction
impl Default for MockTransaction
source§fn default() -> MockTransaction
fn default() -> MockTransaction
Returns the “default value” for a type. Read more
source§impl Hash for MockTransaction
impl Hash for MockTransaction
source§impl Ord for MockTransaction
impl Ord for MockTransaction
source§impl PartialEq for MockTransaction
impl PartialEq for MockTransaction
source§fn eq(&self, other: &MockTransaction) -> bool
fn eq(&self, other: &MockTransaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MockTransaction
impl PartialOrd for MockTransaction
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for MockTransaction
impl Eq for MockTransaction
impl StructuralPartialEq for MockTransaction
Auto Trait Implementations§
impl RefUnwindSafe for MockTransaction
impl Send for MockTransaction
impl Sync for MockTransaction
impl Unpin for MockTransaction
impl UnwindSafe for MockTransaction
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