pub enum GetBlockTemplateResulMutations {
    Time,
    Transactions,
    PreviousBlock,
}Expand description
Enum to representing mutable parts of the block template. This does only cover the muations implemented in Bitcoin Core. More mutations are defined in BIP-23, but not implemented in the getblocktemplate implementation of Bitcoin Core.
Variants§
Time
The client is allowed to modify the time in the header of the block
Transactions
The client is allowed to add transactions to the block
PreviousBlock
The client is allowed to use the work with other previous blocks. This implicitly allows removing transactions that are no longer valid. It also implies adjusting the “height” as necessary.
Trait Implementations§
source§impl Clone for GetBlockTemplateResulMutations
 
impl Clone for GetBlockTemplateResulMutations
source§fn clone(&self) -> GetBlockTemplateResulMutations
 
fn clone(&self) -> GetBlockTemplateResulMutations
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<'de> Deserialize<'de> for GetBlockTemplateResulMutations
 
impl<'de> Deserialize<'de> for GetBlockTemplateResulMutations
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 GetBlockTemplateResulMutations
 
impl PartialEq for GetBlockTemplateResulMutations
source§fn eq(&self, other: &GetBlockTemplateResulMutations) -> bool
 
fn eq(&self, other: &GetBlockTemplateResulMutations) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl Copy for GetBlockTemplateResulMutations
impl Eq for GetBlockTemplateResulMutations
impl StructuralPartialEq for GetBlockTemplateResulMutations
Auto Trait Implementations§
impl RefUnwindSafe for GetBlockTemplateResulMutations
impl Send for GetBlockTemplateResulMutations
impl Sync for GetBlockTemplateResulMutations
impl Unpin for GetBlockTemplateResulMutations
impl UnwindSafe for GetBlockTemplateResulMutations
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