Struct ckb_sdk_types::transaction::MockInput
source · [−]pub struct MockInput {
pub input: CellInput,
pub output: CellOutput,
pub data: Bytes,
pub block_hash: H256,
}
Fields
input: CellInput
output: CellOutput
data: Bytes
block_hash: H256
Trait Implementations
sourceimpl From<MockInput> for ReprMockInput
impl From<MockInput> for ReprMockInput
sourcefn from(input: MockInput) -> ReprMockInput
fn from(input: MockInput) -> ReprMockInput
Performs the conversion.
sourceimpl From<ReprMockInput> for MockInput
impl From<ReprMockInput> for MockInput
sourcefn from(input: ReprMockInput) -> MockInput
fn from(input: ReprMockInput) -> MockInput
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for MockInput
impl Send for MockInput
impl Sync for MockInput
impl Unpin for MockInput
impl UnwindSafe for MockInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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