pub fn with_transfers(self, transfers: Vec<TransferAddr>) -> Self {
        match self {
            ExecutionResult::Failure {
                error,
                cost,
                execution_journal,
                ..
            } => ExecutionResult::Failure {
                error,
                transfers,
                cost,
                execution_journal,
            },
            ExecutionResult::Success {
                cost,
                execution_journal,
                ..
            } => ExecutionResult::Success {
                transfers,
                cost,
                execution_journal,
            },
        }
    }
/// Returns a new execution result with updated transfers field.
///
/// This method preserves the [`ExecutionResult`] variant and updates the
/// `transfers` field only.
Returns a new execution result with updated transfers field.
This method preserves the [`ExecutionResult`] variant and updates the
`transfers` field only.
Returns a new execution result with updated transfers field . This method preserves the [ ` ExecutionResult ` ] variant and updates the ` transfers ` field only .
pub fn with_transfers(self, transfers: Vec<TransferAddr>) -> Self {
        match self {
            ExecutionResult::Failure {
                error,
                cost,
                execution_journal,
                ..
            } => ExecutionResult::Failure {
                error,
                transfers,
                cost,
                execution_journal,
            },
            ExecutionResult::Success {
                cost,
                execution_journal,
                ..
            } => ExecutionResult::Success {
                transfers,
                cost,
                execution_journal,
            },
        }
    }
pub fn with_transfers ( self , transfers : Vec < TransferAddr > ) -> Self { match self { ExecutionResult :: Failure { error , cost , execution_journal , .. } => ExecutionResult :: Failure { error , transfers , cost , execution_journal , } , ExecutionResult :: Success { cost , execution_journal , .. } => ExecutionResult :: Success { transfers , cost , execution_journal , } , } }
Returns a new execution result with updated transfers field.
Returns a new execution result with updated transfers field .
self
transfers
Vec<TransferAddr>
self
transfers
Vec<TransferAddr>