pub struct FixedTransactionBody { /* private fields */ }
Expand description
Read-only view of a transaction body. With correct hash and original bytes. Warning: This is experimental and may be removed in the future.
Implementations§
Source§impl FixedTransactionBody
impl FixedTransactionBody
pub fn from_bytes( bytes: Vec<u8>, ) -> Result<FixedTransactionBody, DeserializeError>
Source§impl FixedTransactionBody
impl FixedTransactionBody
pub fn from_hex(hex_str: &str) -> Result<FixedTransactionBody, DeserializeError>
Source§impl FixedTransactionBody
impl FixedTransactionBody
pub fn transaction_body(&self) -> TransactionBody
pub fn tx_hash(&self) -> TransactionHash
pub fn original_bytes(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for FixedTransactionBody
impl Clone for FixedTransactionBody
Source§fn clone(&self) -> FixedTransactionBody
fn clone(&self) -> FixedTransactionBody
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 FixedTransactionBody
impl Debug for FixedTransactionBody
Source§impl PartialEq for FixedTransactionBody
impl PartialEq for FixedTransactionBody
impl Eq for FixedTransactionBody
impl StructuralPartialEq for FixedTransactionBody
Auto Trait Implementations§
impl Freeze for FixedTransactionBody
impl RefUnwindSafe for FixedTransactionBody
impl !Send for FixedTransactionBody
impl !Sync for FixedTransactionBody
impl Unpin for FixedTransactionBody
impl UnwindSafe for FixedTransactionBody
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more