pub struct InstructionBatch { /* private fields */ }Expand description
Instruction types and the runtime wrapper. A batch of instructions serialized to the runtime JSON array shape.
Implementations§
Source§impl InstructionBatch
impl InstructionBatch
Sourcepub fn push(&mut self, instruction: Instruction)
pub fn push(&mut self, instruction: Instruction)
Appends one instruction to the batch.
Sourcepub fn to_json_string(&self) -> String
pub fn to_json_string(&self) -> String
Serializes the batch to the JSON payload expected by the native runtime.
Trait Implementations§
Source§impl Clone for InstructionBatch
impl Clone for InstructionBatch
Source§fn clone(&self) -> InstructionBatch
fn clone(&self) -> InstructionBatch
Returns a duplicate 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 InstructionBatch
impl Debug for InstructionBatch
Source§impl Default for InstructionBatch
impl Default for InstructionBatch
Source§fn default() -> InstructionBatch
fn default() -> InstructionBatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InstructionBatch
impl RefUnwindSafe for InstructionBatch
impl Send for InstructionBatch
impl Sync for InstructionBatch
impl Unpin for InstructionBatch
impl UnwindSafe for InstructionBatch
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