pub struct GetBlockTemplateOptions {
pub mode: GetBlockTemplateModes,
pub rules: Vec<GetBlockTemplateRules>,
pub capabilities: Vec<GetBlockTemplateCapabilities>,
}
Expand description
Models the request options of “getblocktemplate”
Fields§
§mode: GetBlockTemplateModes
§rules: Vec<GetBlockTemplateRules>
§capabilities: Vec<GetBlockTemplateCapabilities>
List of client side supported features
Trait Implementations§
source§impl Clone for GetBlockTemplateOptions
impl Clone for GetBlockTemplateOptions
source§fn clone(&self) -> GetBlockTemplateOptions
fn clone(&self) -> GetBlockTemplateOptions
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 GetBlockTemplateOptions
impl Debug for GetBlockTemplateOptions
source§impl<'de> Deserialize<'de> for GetBlockTemplateOptions
impl<'de> Deserialize<'de> for GetBlockTemplateOptions
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 GetBlockTemplateOptions
impl PartialEq for GetBlockTemplateOptions
source§fn eq(&self, other: &GetBlockTemplateOptions) -> bool
fn eq(&self, other: &GetBlockTemplateOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GetBlockTemplateOptions
impl Serialize for GetBlockTemplateOptions
impl Eq for GetBlockTemplateOptions
impl StructuralPartialEq for GetBlockTemplateOptions
Auto Trait Implementations§
impl Freeze for GetBlockTemplateOptions
impl RefUnwindSafe for GetBlockTemplateOptions
impl Send for GetBlockTemplateOptions
impl Sync for GetBlockTemplateOptions
impl Unpin for GetBlockTemplateOptions
impl UnwindSafe for GetBlockTemplateOptions
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