Struct bitcoind_json_rpc_regtest::json::Softfork
source · pub struct Softfork {
pub type_: SoftforkType,
pub bip9: Option<Bip9SoftforkInfo>,
pub height: Option<u64>,
pub active: bool,
}
Available on crate feature
26_0
only.Expand description
Status of softfork.
Fields§
§type_: SoftforkType
The SoftforkType
: one of “burried”, “bip9”.
bip9: Option<Bip9SoftforkInfo>
The status of bip9 softforks (only for “bip9” type).
height: Option<u64>
Height of the first block which the rules are or will be enforced (only for “buried” type, or “bip9” type with “active” status).
active: bool
true
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 PartialEq for Softfork
impl PartialEq for Softfork
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 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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more