pub struct InstructionMeasurement {
pub index: usize,
pub program_id: String,
pub label: Option<String>,
pub consumed: Option<u64>,
}Expand description
Compute attributed to a single instruction within a transaction.
Fields§
§index: usizeZero-based index in the transaction.
program_id: StringProgram that owns the instruction.
label: Option<String>Resolved label, if known.
consumed: Option<u64>CU consumed, if the logs reported it.
Trait Implementations§
Source§impl Clone for InstructionMeasurement
impl Clone for InstructionMeasurement
Source§fn clone(&self) -> InstructionMeasurement
fn clone(&self) -> InstructionMeasurement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InstructionMeasurement
impl Debug for InstructionMeasurement
Source§impl<'de> Deserialize<'de> for InstructionMeasurement
impl<'de> Deserialize<'de> for InstructionMeasurement
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 Eq for InstructionMeasurement
Source§impl PartialEq for InstructionMeasurement
impl PartialEq for InstructionMeasurement
Source§fn eq(&self, other: &InstructionMeasurement) -> bool
fn eq(&self, other: &InstructionMeasurement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InstructionMeasurement
impl Serialize for InstructionMeasurement
impl StructuralPartialEq for InstructionMeasurement
Auto Trait Implementations§
impl Freeze for InstructionMeasurement
impl RefUnwindSafe for InstructionMeasurement
impl Send for InstructionMeasurement
impl Sync for InstructionMeasurement
impl Unpin for InstructionMeasurement
impl UnsafeUnpin for InstructionMeasurement
impl UnwindSafe for InstructionMeasurement
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