Struct ckb_jsonrpc_types::TransactionWithStatus [−][src]
pub struct TransactionWithStatus { pub transaction: TransactionView, pub tx_status: TxStatus, }
Expand description
The JSON view of a transaction as well as its status.
Fields
transaction: TransactionView
The transaction.
tx_status: TxStatus
The Transaction status.
Implementations
impl TransactionWithStatus
[src]
impl TransactionWithStatus
[src]pub fn with_pending(tx: TransactionView) -> Self
[src]
pub fn with_pending(tx: TransactionView) -> Self
[src]Build with pending status
pub fn with_proposed(tx: TransactionView) -> Self
[src]
pub fn with_proposed(tx: TransactionView) -> Self
[src]Build with proposed status
pub fn with_committed(tx: TransactionView, hash: H256) -> Self
[src]
pub fn with_committed(tx: TransactionView, hash: H256) -> Self
[src]Build with committed status
Trait Implementations
impl Clone for TransactionWithStatus
[src]
impl Clone for TransactionWithStatus
[src]fn clone(&self) -> TransactionWithStatus
[src]
fn clone(&self) -> TransactionWithStatus
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for TransactionWithStatus
[src]
impl Debug for TransactionWithStatus
[src]impl<'de> Deserialize<'de> for TransactionWithStatus
[src]
impl<'de> Deserialize<'de> for TransactionWithStatus
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Hash for TransactionWithStatus
[src]
impl Hash for TransactionWithStatus
[src]impl PartialEq<TransactionWithStatus> for TransactionWithStatus
[src]
impl PartialEq<TransactionWithStatus> for TransactionWithStatus
[src]fn eq(&self, other: &TransactionWithStatus) -> bool
[src]
fn eq(&self, other: &TransactionWithStatus) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &TransactionWithStatus) -> bool
[src]
fn ne(&self, other: &TransactionWithStatus) -> bool
[src]This method tests for !=
.
impl Serialize for TransactionWithStatus
[src]
impl Serialize for TransactionWithStatus
[src]impl Eq for TransactionWithStatus
[src]
impl StructuralEq for TransactionWithStatus
[src]
impl StructuralPartialEq for TransactionWithStatus
[src]
Auto Trait Implementations
impl RefUnwindSafe for TransactionWithStatus
impl Send for TransactionWithStatus
impl Sync for TransactionWithStatus
impl Unpin for TransactionWithStatus
impl UnwindSafe for TransactionWithStatus
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,