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
sourceimpl Clone for GetBlockTemplateResultRules
impl Clone for GetBlockTemplateResultRules
sourcefn clone(&self) -> GetBlockTemplateResultRules
fn clone(&self) -> GetBlockTemplateResultRules
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GetBlockTemplateResultRules
impl Debug for GetBlockTemplateResultRules
sourceimpl<'de> Deserialize<'de> for GetBlockTemplateResultRules
impl<'de> Deserialize<'de> for GetBlockTemplateResultRules
sourcefn 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
sourceimpl PartialEq<GetBlockTemplateResultRules> for GetBlockTemplateResultRules
impl PartialEq<GetBlockTemplateResultRules> for GetBlockTemplateResultRules
sourcefn 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 ==
. Read more
impl Copy for GetBlockTemplateResultRules
impl Eq for GetBlockTemplateResultRules
impl StructuralEq for GetBlockTemplateResultRules
impl StructuralPartialEq for GetBlockTemplateResultRules
Auto Trait Implementations
impl RefUnwindSafe for GetBlockTemplateResultRules
impl Send for GetBlockTemplateResultRules
impl Sync for GetBlockTemplateResultRules
impl Unpin for GetBlockTemplateResultRules
impl UnwindSafe for GetBlockTemplateResultRules
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more