pub struct ChainIdParamsDeprecated {
pub chain_id: u32,
}
Expand description
The parameters needed to determine the chain_id based on epoch_number.
Fields§
§chain_id: u32
Preconfigured chain_id.
Implementations§
source§impl ChainIdParamsDeprecated
impl ChainIdParamsDeprecated
sourcepub fn get_chain_id(&self, _epoch_number: u64) -> u32
pub fn get_chain_id(&self, _epoch_number: u64) -> u32
The function return the chain_id with given parameters
Trait Implementations§
source§impl Clone for ChainIdParamsDeprecated
impl Clone for ChainIdParamsDeprecated
source§fn clone(&self) -> ChainIdParamsDeprecated
fn clone(&self) -> ChainIdParamsDeprecated
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ChainIdParamsDeprecated
impl Debug for ChainIdParamsDeprecated
source§impl Decodable for ChainIdParamsDeprecated
impl Decodable for ChainIdParamsDeprecated
source§impl Default for ChainIdParamsDeprecated
impl Default for ChainIdParamsDeprecated
source§fn default() -> ChainIdParamsDeprecated
fn default() -> ChainIdParamsDeprecated
Returns the “default value” for a type. Read more
source§impl Encodable for ChainIdParamsDeprecated
impl Encodable for ChainIdParamsDeprecated
source§impl From<ChainIdParamsDeprecated> for ChainIdParamsOneChainInner
impl From<ChainIdParamsDeprecated> for ChainIdParamsOneChainInner
source§fn from(x: ChainIdParamsDeprecated) -> Self
fn from(x: ChainIdParamsDeprecated) -> Self
Converts to this type from the input type.
source§impl PartialEq for ChainIdParamsDeprecated
impl PartialEq for ChainIdParamsDeprecated
source§fn eq(&self, other: &ChainIdParamsDeprecated) -> bool
fn eq(&self, other: &ChainIdParamsDeprecated) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ChainIdParamsDeprecated
impl StructuralPartialEq for ChainIdParamsDeprecated
Auto Trait Implementations§
impl RefUnwindSafe for ChainIdParamsDeprecated
impl Send for ChainIdParamsDeprecated
impl Sync for ChainIdParamsDeprecated
impl Unpin for ChainIdParamsDeprecated
impl UnwindSafe for ChainIdParamsDeprecated
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