pub struct Transaction {
pub version: u32,
pub transaction_data: TransactionData,
}Fields§
§version: u32§transaction_data: TransactionDataImplementations§
Source§impl Transaction
impl Transaction
pub fn metadata( &self, parent_data_proposal_hash: DataProposalHash, ) -> TransactionMetadata
Source§impl Transaction
impl Transaction
pub fn wrap(data: TransactionData) -> Self
Trait Implementations§
Source§impl BorshDeserialize for Transaction
impl BorshDeserialize for Transaction
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for Transaction
impl BorshSerialize for Transaction
Source§impl Clone for Transaction
impl Clone for Transaction
Source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
Returns a duplicate 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 DataSized for Transaction
impl DataSized for Transaction
fn estimate_size(&self) -> usize
Source§impl Debug for Transaction
impl Debug for Transaction
Source§impl Default for Transaction
impl Default for Transaction
Source§fn default() -> Transaction
fn default() -> Transaction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Transaction
impl<'de> Deserialize<'de> for Transaction
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<BlobTransaction> for Transaction
impl From<BlobTransaction> for Transaction
Source§fn from(tx: BlobTransaction) -> Self
fn from(tx: BlobTransaction) -> Self
Converts to this type from the input type.
Source§impl From<ProofTransaction> for Transaction
impl From<ProofTransaction> for Transaction
Source§fn from(tx: ProofTransaction) -> Self
fn from(tx: ProofTransaction) -> Self
Converts to this type from the input type.
Source§impl From<TransactionData> for Transaction
impl From<TransactionData> for Transaction
Source§fn from(data: TransactionData) -> Self
fn from(data: TransactionData) -> Self
Converts to this type from the input type.
Source§impl From<VerifiedProofTransaction> for Transaction
impl From<VerifiedProofTransaction> for Transaction
Source§fn from(tx: VerifiedProofTransaction) -> Self
fn from(tx: VerifiedProofTransaction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Transaction
impl PartialEq for Transaction
Source§impl Serialize for Transaction
impl Serialize for Transaction
impl Eq for Transaction
impl StructuralPartialEq for Transaction
Auto Trait Implementations§
impl !Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnsafeUnpin for Transaction
impl UnwindSafe for Transaction
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.