pub struct ChainSimulatorGenerateBlocksRequest {
pub query: String,
}Expand description
Generates blocks using the chain simulator API.
Fields§
§query: StringImplementations§
Source§impl ChainSimulatorGenerateBlocksRequest
impl ChainSimulatorGenerateBlocksRequest
pub fn num_blocks(num_blocks: u64) -> Self
pub fn until_epoch(epoch_number: u64) -> Self
Sourcepub fn until_tx_processed(tx_hash: &str) -> Self
pub fn until_tx_processed(tx_hash: &str) -> Self
TODO: convert arg to H256
Trait Implementations§
Source§impl GatewayRequest for ChainSimulatorGenerateBlocksRequest
impl GatewayRequest for ChainSimulatorGenerateBlocksRequest
type Payload = ()
type DecodedJson = GenerateBlocksResponse
type Result = String
fn request_type(&self) -> GatewayRequestType
fn get_endpoint(&self) -> String
fn process_json(&self, decoded: Self::DecodedJson) -> Result<Self::Result>
fn get_payload(&self) -> Option<&Self::Payload>
Auto Trait Implementations§
impl Freeze for ChainSimulatorGenerateBlocksRequest
impl RefUnwindSafe for ChainSimulatorGenerateBlocksRequest
impl Send for ChainSimulatorGenerateBlocksRequest
impl Sync for ChainSimulatorGenerateBlocksRequest
impl Unpin for ChainSimulatorGenerateBlocksRequest
impl UnsafeUnpin for ChainSimulatorGenerateBlocksRequest
impl UnwindSafe for ChainSimulatorGenerateBlocksRequest
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more