Skip to main content

ValueShareContract

Trait ValueShareContract 

Source
pub trait ValueShareContract {
    // Required method
    fn calculate_share(
        &self,
        attribution: SavingsAttribution,
    ) -> SettlementRecord;
}
Expand description

Extension point for Enterprise billing implementations such as VerifiedValueShare.

Required Methods§

Source

fn calculate_share(&self, attribution: SavingsAttribution) -> SettlementRecord

Calculate the settlement owed for a savings attribution.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§