pub struct FinalInput {
pub partial_input: PartialInput,
pub program_input: Option<ProgramInput>,
pub issuance_input: Option<IssuanceInput>,
pub required_sig: RequiredSignature,
}Expand description
Represents the final input structure put into a FinalTransaction for processing.
Fields§
§partial_input: PartialInputHolds the base input data required for the operation.
program_input: Option<ProgramInput>Holds program inputs, which are used for program witness finalization.
issuance_input: Option<IssuanceInput>Contains optional issuance-related information.
required_sig: RequiredSignatureRequired signature for finalizing the transaction.
Implementations§
Source§impl FinalInput
impl FinalInput
Sourcepub fn new(
partial_input: PartialInput,
required_sig: RequiredSignature,
) -> FinalInput
pub fn new( partial_input: PartialInput, required_sig: RequiredSignature, ) -> FinalInput
Creates a new instance of the type with the specified partial_input and required_sig.
Sourcepub fn with_program(self, program_input: ProgramInput) -> FinalInput
pub fn with_program(self, program_input: ProgramInput) -> FinalInput
Sets the program_input field with the given ProgramInput and returns the modified FinalInput.
Sourcepub fn with_issuance(self, issuance_input: IssuanceInput) -> FinalInput
pub fn with_issuance(self, issuance_input: IssuanceInput) -> FinalInput
Sets the issuance_input field of the current instance and returns the updated FinalInput.
Sourcepub fn get_issuance_details(&self) -> Option<IssuanceDetails>
pub fn get_issuance_details(&self) -> Option<IssuanceDetails>
Retrieves the issuance details associated with the current instance.
§Errors
This method does not explicitly return errors but returns None if no issuance
input is available.
Sourcepub fn to_input(&self) -> Input
pub fn to_input(&self) -> Input
Converts the current object into an Input representation, including any
issuance input and partial input details.
§Panics
This function will panic if the issuance_input is of type Reissuance
and the partial_input.secrets field is None or does not contain the necessary
confidential information. Specifically, a panic occurs when attempting to unwrap the asset_bf value.
Trait Implementations§
Source§impl Clone for FinalInput
impl Clone for FinalInput
Source§fn clone(&self) -> FinalInput
fn clone(&self) -> FinalInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for FinalInput
impl !RefUnwindSafe for FinalInput
impl !Send for FinalInput
impl !Sync for FinalInput
impl Unpin for FinalInput
impl UnsafeUnpin for FinalInput
impl !UnwindSafe for FinalInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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