pub struct ChainIdParamsDeprecated {
pub chain_id: u32,
}Expand description
The parameters needed to determine the chain_id based on epoch_number.
Fields§
§chain_id: u32Preconfigured 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§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§impl Encodable for ChainIdParamsDeprecated
impl Encodable for ChainIdParamsDeprecated
Source§fn rlp_append(&self, stream: &mut RlpStream)
fn rlp_append(&self, stream: &mut RlpStream)
Append a value to the stream
impl Eq 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
impl StructuralPartialEq for ChainIdParamsDeprecated
Auto Trait Implementations§
impl Forget for ChainIdParamsDeprecated
impl Freeze for ChainIdParamsDeprecated
impl Move for ChainIdParamsDeprecated
impl RefUnwindSafe for ChainIdParamsDeprecated
impl Send for ChainIdParamsDeprecated
impl Sync for ChainIdParamsDeprecated
impl Unpin for ChainIdParamsDeprecated
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.