pub struct TransactionSlice<'a, P: ?Sized> {
pub(super) data: &'a [u8],
pub(super) tstruct: TransactionStruct,
pub(super) phantom: PhantomData<P>,
}
Fields§
§data: &'a [u8]
§tstruct: TransactionStruct
§phantom: PhantomData<P>
Implementations§
source§impl<'a, P> TransactionSlice<'a, P>
impl<'a, P> TransactionSlice<'a, P>
pub fn to_owned(&self) -> Transaction<P>
pub fn transaction_auth_data(&self) -> TransactionAuthData<'a>
pub fn transaction_sign_data_hash(&self) -> TransactionSignDataHash
pub fn transaction_binding_auth_data(&self) -> TransactionBindingAuthData<'a>
pub fn payload(&self) -> PayloadSlice<'a, P>
pub fn nb_inputs(&self) -> u8
pub fn valid_until(&self) -> BlockDate
pub fn nb_outputs(&self) -> u8
pub fn nb_witnesses(&self) -> u8
pub fn inputs(&self) -> InputsSlice<'a>
pub fn outputs(&self) -> OutputsSlice<'a>
pub fn witnesses(&self) -> WitnessesSlice<'a>
pub fn inputs_and_witnesses(&self) -> InputsWitnessesSlice<'a>
pub fn payload_auth(&self) -> PayloadAuthSlice<'a, P>where P: Payload,
pub fn total_input(&self) -> Result<Value, ValueError>
pub fn total_output(&self) -> Result<Value, ValueError>
pub fn verify_strictly_balanced(&self, fee: Value) -> Result<(), BalanceError>
Auto Trait Implementations§
impl<'a, P: ?Sized> RefUnwindSafe for TransactionSlice<'a, P>where P: RefUnwindSafe,
impl<'a, P: ?Sized> Send for TransactionSlice<'a, P>where P: Send,
impl<'a, P: ?Sized> Sync for TransactionSlice<'a, P>where P: Sync,
impl<'a, P: ?Sized> Unpin for TransactionSlice<'a, P>where P: Unpin,
impl<'a, P: ?Sized> UnwindSafe for TransactionSlice<'a, P>where P: UnwindSafe,
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