pub struct Softfork {
pub type_: SoftforkType,
pub bip9: Option<Bip9SoftforkInfo>,
pub height: Option<i64>,
pub active: bool,
}Expand description
Softfork status. Part of getblockchaininfo.
Fields§
§type_: SoftforkTypeThe SoftforkType: one of “buried”, “bip9”.
bip9: Option<Bip9SoftforkInfo>The status of bip9 softforks (only for “bip9” type).
height: Option<i64>Height of the first block which the rules are or will be enforced (only for “buried” type, or “bip9” type with “active” status).
active: booltrue if the rules are enforced for the mempool and the next block.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Softfork
impl<'de> Deserialize<'de> for Softfork
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Softfork, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Softfork, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Softfork
impl Serialize for Softfork
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Softfork
impl StructuralPartialEq for Softfork
Auto Trait Implementations§
impl Freeze for Softfork
impl RefUnwindSafe for Softfork
impl Send for Softfork
impl Sync for Softfork
impl Unpin for Softfork
impl UnsafeUnpin for Softfork
impl UnwindSafe for Softfork
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