pub enum GetBlockTemplateResultRules {
SegWit,
Signet,
Csv,
Taproot,
Testdummy,
}
Expand description
Enum to representing specific block rules that client must support to work with the template returned by Bitcoin Core
Variants§
SegWit
Inidcates that the client must support the SegWit rules when using this template.
Signet
Indicates that the client must support the Signet rules when using this template.
Csv
Indicates that the client must support the CSV rules when using this template.
Taproot
Indicates that the client must support the taproot rules when using this template.
Testdummy
Indicates that the client must support the Regtest rules when using this template. TestDummy is a test soft-fork only used on the regtest network.
Trait Implementations§
source§impl Clone for GetBlockTemplateResultRules
impl Clone for GetBlockTemplateResultRules
source§fn clone(&self) -> GetBlockTemplateResultRules
fn clone(&self) -> GetBlockTemplateResultRules
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 GetBlockTemplateResultRules
impl Debug for GetBlockTemplateResultRules
source§impl<'de> Deserialize<'de> for GetBlockTemplateResultRules
impl<'de> Deserialize<'de> for GetBlockTemplateResultRules
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
source§impl PartialEq for GetBlockTemplateResultRules
impl PartialEq for GetBlockTemplateResultRules
source§fn eq(&self, other: &GetBlockTemplateResultRules) -> bool
fn eq(&self, other: &GetBlockTemplateResultRules) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for GetBlockTemplateResultRules
impl Eq for GetBlockTemplateResultRules
impl StructuralPartialEq for GetBlockTemplateResultRules
Auto Trait Implementations§
impl Freeze for GetBlockTemplateResultRules
impl RefUnwindSafe for GetBlockTemplateResultRules
impl Send for GetBlockTemplateResultRules
impl Sync for GetBlockTemplateResultRules
impl Unpin for GetBlockTemplateResultRules
impl UnwindSafe for GetBlockTemplateResultRules
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