pub struct ConfigProposalSetup {
pub min_total_rounds: u8,
pub max_total_rounds: u8,
pub min_wins: u8,
pub max_losses: u8,
pub min_store_sec: u32,
pub max_store_sec: u32,
pub bit_price: u32,
pub cell_price: u32,
}Expand description
Config proposal setup params.
Fields§
§min_total_rounds: u8The minimal number of voting rounds for the proposal.
max_total_rounds: u8The maximum number of voting rounds for the proposal.
min_wins: u8The minimum number of winned voting rounds.
max_losses: u8The maximum number of lost voting rounds.
min_store_sec: u32The minimal proposal lifetime duration in seconds.
max_store_sec: u32The maximum proposal lifetime duration in seconds.
bit_price: u32Bit price for storage price computation.
cell_price: u32Cell price for storage price computation.
Trait Implementations§
Source§impl Clone for ConfigProposalSetup
impl Clone for ConfigProposalSetup
Source§fn clone(&self) -> ConfigProposalSetup
fn clone(&self) -> ConfigProposalSetup
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigProposalSetup
impl Debug for ConfigProposalSetup
Source§impl<'de> Deserialize<'de> for ConfigProposalSetup
impl<'de> Deserialize<'de> for ConfigProposalSetup
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'tlb> Load<'tlb> for ConfigProposalSetup
impl<'tlb> Load<'tlb> for ConfigProposalSetup
Source§impl PartialEq for ConfigProposalSetup
impl PartialEq for ConfigProposalSetup
Source§impl Serialize for ConfigProposalSetup
impl Serialize for ConfigProposalSetup
Source§impl Store for ConfigProposalSetup
impl Store for ConfigProposalSetup
Source§fn store_into(
&self,
__builder: &mut CellBuilder,
__context: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, __builder: &mut CellBuilder, __context: &dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Eq for ConfigProposalSetup
impl StructuralPartialEq for ConfigProposalSetup
Auto Trait Implementations§
impl Freeze for ConfigProposalSetup
impl RefUnwindSafe for ConfigProposalSetup
impl Send for ConfigProposalSetup
impl Sync for ConfigProposalSetup
impl Unpin for ConfigProposalSetup
impl UnwindSafe for ConfigProposalSetup
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self to key and returns true if they are equal.