pub struct Generate(/* private fields */);Expand description
Result of JSON-RPC method generate.
generate nblocks ( maxtries )
Mine up to nblocks blocks immediately (before the RPC call returns) to an address in the wallet.
Arguments:
- nblocks (numeric, required) How many blocks are generated immediately.
- maxtries (numeric, optional) How many iterations to try (default = 1000000).
Implementations§
Source§impl Generate
impl Generate
Sourcepub fn into_model(self) -> Result<Generate, HexToArrayError>
pub fn into_model(self) -> Result<Generate, HexToArrayError>
Converts version specific type to a version in-specific, more strongly typed type.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Generate
impl<'de> Deserialize<'de> for Generate
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
impl StructuralPartialEq for Generate
Auto Trait Implementations§
impl Freeze for Generate
impl RefUnwindSafe for Generate
impl Send for Generate
impl Sync for Generate
impl Unpin for Generate
impl UnwindSafe for Generate
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