pub struct InvocationResult {
pub script: String,
pub state: NeoVMStateType,
pub gas_consumed: String,
pub exception: Option<String>,
pub notifications: Option<Vec<Notification>>,
pub diagnostics: Option<Diagnostics>,
pub stack: Vec<StackItem>,
pub tx: Option<String>,
pub pending_signature: Option<PendingSignature>,
pub session_id: Option<String>,
}
Fields§
§script: String
§state: NeoVMStateType
§gas_consumed: String
§exception: Option<String>
§notifications: Option<Vec<Notification>>
§diagnostics: Option<Diagnostics>
§stack: Vec<StackItem>
§tx: Option<String>
§pending_signature: Option<PendingSignature>
§session_id: Option<String>
Implementations§
Source§impl InvocationResult
impl InvocationResult
pub fn new( script: String, state: NeoVMStateType, gas_consumed: String, exception: Option<String>, notifications: Option<Vec<Notification>>, diagnostics: Option<Diagnostics>, stack: Vec<StackItem>, tx: Option<String>, pending_signature: Option<PendingSignature>, session_id: Option<String>, ) -> Self
pub fn has_state_fault(&self) -> bool
pub fn get_first_stack_item(&self) -> Result<&StackItem, TypeError>
pub fn get_stack_item(&self, index: usize) -> Result<&StackItem, TypeError>
pub fn get_first_notification(&self) -> Result<&Notification, TypeError>
pub fn get_notification(&self, index: usize) -> Result<&Notification, TypeError>
Trait Implementations§
Source§impl Clone for InvocationResult
impl Clone for InvocationResult
Source§fn clone(&self) -> InvocationResult
fn clone(&self) -> InvocationResult
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InvocationResult
impl Debug for InvocationResult
Source§impl Default for InvocationResult
impl Default for InvocationResult
Source§impl<'de> Deserialize<'de> for InvocationResult
impl<'de> Deserialize<'de> for InvocationResult
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
Source§impl Hash for InvocationResult
impl Hash for InvocationResult
Source§impl PartialEq for InvocationResult
impl PartialEq for InvocationResult
Source§impl Serialize for InvocationResult
impl Serialize for InvocationResult
impl Eq for InvocationResult
impl StructuralPartialEq for InvocationResult
Auto Trait Implementations§
impl Freeze for InvocationResult
impl RefUnwindSafe for InvocationResult
impl Send for InvocationResult
impl Sync for InvocationResult
impl Unpin for InvocationResult
impl UnwindSafe for InvocationResult
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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> 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