#[repr(u8)]pub enum TxDataFormat {
RawTx = 0,
RawTxAndBumpIndex = 1,
TxidOnly = 2,
}Expand description
Format marker for transactions in BEEF V2 format (BRC-96).
Variants§
RawTx = 0
Raw transaction without BUMP proof.
RawTxAndBumpIndex = 1
Raw transaction with a BUMP index.
TxidOnly = 2
Transaction represented by txid only (no raw data).
Implementations§
Source§impl TxDataFormat
impl TxDataFormat
Sourcepub fn from_byte(b: u8) -> Result<Self, TransactionError>
pub fn from_byte(b: u8) -> Result<Self, TransactionError>
Convert a u8 byte to a TxDataFormat variant.
Trait Implementations§
Source§impl Clone for TxDataFormat
impl Clone for TxDataFormat
Source§fn clone(&self) -> TxDataFormat
fn clone(&self) -> TxDataFormat
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 Debug for TxDataFormat
impl Debug for TxDataFormat
Source§impl PartialEq for TxDataFormat
impl PartialEq for TxDataFormat
impl Copy for TxDataFormat
impl Eq for TxDataFormat
impl StructuralPartialEq for TxDataFormat
Auto Trait Implementations§
impl Freeze for TxDataFormat
impl RefUnwindSafe for TxDataFormat
impl Send for TxDataFormat
impl Sync for TxDataFormat
impl Unpin for TxDataFormat
impl UnsafeUnpin for TxDataFormat
impl UnwindSafe for TxDataFormat
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