pub struct ReprMockTransaction {
pub mock_info: ReprMockInfo,
pub tx: Transaction,
}
Expand description
The structs and their implementations provide serialization and deserialization capabilities for mock cell dependencies, inputs, and transactions.
Fields§
§mock_info: ReprMockInfo
§tx: Transaction
Trait Implementations§
Source§impl Clone for ReprMockTransaction
impl Clone for ReprMockTransaction
Source§fn clone(&self) -> ReprMockTransaction
fn clone(&self) -> ReprMockTransaction
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<'de> Deserialize<'de> for ReprMockTransaction
impl<'de> Deserialize<'de> for ReprMockTransaction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<MockTransaction> for ReprMockTransaction
impl From<MockTransaction> for ReprMockTransaction
Source§fn from(tx: MockTransaction) -> ReprMockTransaction
fn from(tx: MockTransaction) -> ReprMockTransaction
Converts to this type from the input type.
Source§impl From<ReprMockTransaction> for MockTransaction
impl From<ReprMockTransaction> for MockTransaction
Source§fn from(tx: ReprMockTransaction) -> MockTransaction
fn from(tx: ReprMockTransaction) -> MockTransaction
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReprMockTransaction
impl RefUnwindSafe for ReprMockTransaction
impl Send for ReprMockTransaction
impl Sync for ReprMockTransaction
impl Unpin for ReprMockTransaction
impl UnwindSafe for ReprMockTransaction
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
)