pub struct CliqueParams {
pub period: Option<u64>,
pub epoch: Option<NonZeroU64>,
}
Expand description
Clique params deserialization.
Fields
period: Option<u64>
period as defined in EIP
epoch: Option<NonZeroU64>
epoch length as defined in EIP
Trait Implementations
sourceimpl Debug for CliqueParams
impl Debug for CliqueParams
sourceimpl<'de> Deserialize<'de> for CliqueParams
impl<'de> Deserialize<'de> for CliqueParams
sourcefn 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
sourceimpl PartialEq<CliqueParams> for CliqueParams
impl PartialEq<CliqueParams> for CliqueParams
sourcefn eq(&self, other: &CliqueParams) -> bool
fn eq(&self, other: &CliqueParams) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CliqueParams) -> bool
fn ne(&self, other: &CliqueParams) -> bool
This method tests for !=
.
impl StructuralPartialEq for CliqueParams
Auto Trait Implementations
impl RefUnwindSafe for CliqueParams
impl Send for CliqueParams
impl Sync for CliqueParams
impl Unpin for CliqueParams
impl UnwindSafe for CliqueParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more