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