pub struct ValidatorCountParams {
pub max_validators: u16,
pub max_main_validators: u16,
pub min_validators: u16,
}Expand description
Range of number of validators.
Fields§
§max_validators: u16The maximum number of validators.
max_main_validators: u16The maximum number of masterchain validators.
min_validators: u16The minimum number of validators.
Trait Implementations§
Source§impl Clone for ValidatorCountParams
impl Clone for ValidatorCountParams
Source§fn clone(&self) -> ValidatorCountParams
fn clone(&self) -> ValidatorCountParams
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 ValidatorCountParams
impl Debug for ValidatorCountParams
Source§impl<'de> Deserialize<'de> for ValidatorCountParams
impl<'de> Deserialize<'de> for ValidatorCountParams
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 ValidatorCountParams
impl<'tlb> Load<'tlb> for ValidatorCountParams
Source§impl PartialEq for ValidatorCountParams
impl PartialEq for ValidatorCountParams
Source§impl Serialize for ValidatorCountParams
impl Serialize for ValidatorCountParams
Source§impl Store for ValidatorCountParams
impl Store for ValidatorCountParams
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 Copy for ValidatorCountParams
impl Eq for ValidatorCountParams
impl StructuralPartialEq for ValidatorCountParams
Auto Trait Implementations§
impl Freeze for ValidatorCountParams
impl RefUnwindSafe for ValidatorCountParams
impl Send for ValidatorCountParams
impl Sync for ValidatorCountParams
impl Unpin for ValidatorCountParams
impl UnwindSafe for ValidatorCountParams
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.