pub fn sapling_value_balance(&self) -> ValueBalance<NegativeAllowed> {
        let sapling_value_balance = match self {
            Transaction::V4 {
                sapling_shielded_data: Some(sapling_shielded_data),
                ..
            } => sapling_shielded_data.value_balance,
            Transaction::V5 {
                sapling_shielded_data: Some(sapling_shielded_data),
                ..
            } => sapling_shielded_data.value_balance,

            Transaction::V1 { .. }
            | Transaction::V2 { .. }
            | Transaction::V3 { .. }
            | Transaction::V4 {
                sapling_shielded_data: None,
                ..
            }
            | Transaction::V5 {
                sapling_shielded_data: None,
                ..
            } => Amount::zero(),
        };

        ValueBalance::from_sapling_amount(sapling_value_balance)
    }
/// Return the sapling value balance,
/// the change in the transaction value pool due to sapling `Spend`s and `Output`s.
///
/// Returns the `valueBalanceSapling` field in this transaction.
///
/// Positive values are added to this transaction's value pool,
/// and removed from the sapling chain value pool.
/// Negative values are removed from this transaction,
/// and added to sapling pool.
///
/// https://zebra.zfnd.org/dev/rfcs/0012-value-pools.html#definitions
Return the sapling value balance,
the change in the transaction value pool due to sapling `Spend`s and `Output`s.

Returns the `valueBalanceSapling` field in this transaction.

Positive values are added to this transaction's value pool,
and removed from the sapling chain value pool.
Negative values are removed from this transaction,
and added to sapling pool.


Return the sapling value balance the change in the transaction value pool due to sapling ` Spend ` s and ` Output ` s . Returns the ` valueBalanceSapling ` field in this transaction . Positive values are added to this transaction ' s value pool and removed from the sapling chain value pool . Negative values are removed from this transaction and added to sapling pool .
pub fn sapling_value_balance(&self) -> ValueBalance<NegativeAllowed> {
        let sapling_value_balance = match self {
            Transaction::V4 {
                sapling_shielded_data: Some(sapling_shielded_data),
                ..
            } => sapling_shielded_data.value_balance,
            Transaction::V5 {
                sapling_shielded_data: Some(sapling_shielded_data),
                ..
            } => sapling_shielded_data.value_balance,
            Transaction::V1 { .. }
            | Transaction::V2 { .. }
            | Transaction::V3 { .. }
            | Transaction::V4 {
                sapling_shielded_data: None,
                ..
            }
            | Transaction::V5 {
                sapling_shielded_data: None,
                ..
            } => Amount::zero(),
        };
        ValueBalance::from_sapling_amount(sapling_value_balance)
    }
pub fn sapling_value_balance ( & self ) -> ValueBalance < NegativeAllowed > { let sapling_value_balance = match self { Transaction :: V4 { sapling_shielded_data : Some ( sapling_shielded_data ) , .. } => sapling_shielded_data . value_balance , Transaction :: V5 { sapling_shielded_data : Some ( sapling_shielded_data ) , .. } => sapling_shielded_data . value_balance , Transaction :: V1 { .. } | Transaction :: V2 { .. } | Transaction :: V3 { .. } | Transaction :: V4 { sapling_shielded_data : None , .. } | Transaction :: V5 { sapling_shielded_data : None , .. } => Amount :: zero ( ) , } ; ValueBalance :: from_sapling_amount ( sapling_value_balance ) }
Return the sapling value balance,
the change in the transaction value pool due to sapling `Spend`s and `Output`s.
Return the sapling value balance the change in the transaction value pool due to sapling ` Spend ` s and ` Output ` s .
&self