Struct novax_executor::SimulationGatewayRequest
source · pub struct SimulationGatewayRequest {
pub value: String,
pub receiver: String,
pub sender: String,
pub gas_limit: u64,
pub data: String,
}Expand description
A convenient struct in NovaX used to accumulate information necessary for creating a transaction simulation request.
This struct is internally converted into SimulationGatewayRequestBody when sending the request to the gateway.
Fields§
§value: StringThe value being transferred in the transaction, represented as a stringified number.
receiver: StringThe blockchain address of the transaction’s receiver.
sender: StringThe blockchain address of the transaction’s sender.
gas_limit: u64The maximum amount of gas that the transaction is allowed to consume.
data: StringThe data payload of the transaction, typically encoded for the transaction’s context.
Auto Trait Implementations§
impl Freeze for SimulationGatewayRequest
impl RefUnwindSafe for SimulationGatewayRequest
impl Send for SimulationGatewayRequest
impl Sync for SimulationGatewayRequest
impl Unpin for SimulationGatewayRequest
impl UnwindSafe for SimulationGatewayRequest
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
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