Struct ethjson::spec::basic_authority::BasicAuthorityParams
source · [−]pub struct BasicAuthorityParams {
pub duration_limit: Uint,
pub validators: ValidatorSet,
}
Expand description
Authority params deserialization.
Fields
duration_limit: Uint
Block duration.
validators: ValidatorSet
Valid authorities
Trait Implementations
sourceimpl Debug for BasicAuthorityParams
impl Debug for BasicAuthorityParams
sourceimpl<'de> Deserialize<'de> for BasicAuthorityParams
impl<'de> Deserialize<'de> for BasicAuthorityParams
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<BasicAuthorityParams> for BasicAuthorityParams
impl PartialEq<BasicAuthorityParams> for BasicAuthorityParams
sourcefn eq(&self, other: &BasicAuthorityParams) -> bool
fn eq(&self, other: &BasicAuthorityParams) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BasicAuthorityParams) -> bool
fn ne(&self, other: &BasicAuthorityParams) -> bool
This method tests for !=
.
impl StructuralPartialEq for BasicAuthorityParams
Auto Trait Implementations
impl RefUnwindSafe for BasicAuthorityParams
impl Send for BasicAuthorityParams
impl Sync for BasicAuthorityParams
impl Unpin for BasicAuthorityParams
impl UnwindSafe for BasicAuthorityParams
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