pub trait CalculatePageDeposit<Balance> {
// Required method
fn calculate_page_deposit(
existing_submitters: usize,
page_size: usize,
) -> Balance;
}
Expand description
Something that can calculate the deposit per-page upon submit
.
A blanket impl allows for any Get
to be used as-is, which will always return the said balance
as deposit per page.
Required Methods§
fn calculate_page_deposit( existing_submitters: usize, page_size: usize, ) -> Balance
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.