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
impl Eq for ChainIdParamsDeprecated
impl StructuralPartialEq for ChainIdParamsDeprecated
Auto Trait Implementations§
impl Freeze for ChainIdParamsDeprecated
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
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.