Struct ckb_jsonrpc_types::HardForkFeature
source · pub struct HardForkFeature {
pub rfc: String,
pub epoch_number: Option<EpochNumber>,
}
Expand description
The information about one hardfork feature.
Fields§
§rfc: String
The related RFC ID.
epoch_number: Option<EpochNumber>
The first epoch when the feature is enabled, null
indicates that the RFC has never been enabled.
Implementations§
source§impl HardForkFeature
impl HardForkFeature
sourcepub fn new(rfc: &str, epoch_number: Option<EpochNumber>) -> Self
pub fn new(rfc: &str, epoch_number: Option<EpochNumber>) -> Self
Creates a new struct.
Trait Implementations§
source§impl Clone for HardForkFeature
impl Clone for HardForkFeature
source§fn clone(&self) -> HardForkFeature
fn clone(&self) -> HardForkFeature
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 HardForkFeature
impl Debug for HardForkFeature
source§impl<'de> Deserialize<'de> for HardForkFeature
impl<'de> Deserialize<'de> for HardForkFeature
source§fn 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
Auto Trait Implementations§
impl RefUnwindSafe for HardForkFeature
impl Send for HardForkFeature
impl Sync for HardForkFeature
impl Unpin for HardForkFeature
impl UnwindSafe for HardForkFeature
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