pub struct ContractResult<State> {
pub state: State,
pub success: bool,
pub error: String,
}Expand description
Contract execution result.
Fields§
§state: StateFinal state of the contract.
success: boolIs the contract execution successful?
error: StringContract error
Implementations§
Source§impl<State> ContractResult<State>
Internal contract execution result implementation for building results.
impl<State> ContractResult<State>
Internal contract execution result implementation for building results.
Trait Implementations§
Source§impl<State: Debug> Debug for ContractResult<State>
impl<State: Debug> Debug for ContractResult<State>
Source§impl<'de, State> Deserialize<'de> for ContractResult<State>where
State: Deserialize<'de>,
impl<'de, State> Deserialize<'de> for ContractResult<State>where
State: Deserialize<'de>,
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
Auto Trait Implementations§
impl<State> Freeze for ContractResult<State>where
State: Freeze,
impl<State> RefUnwindSafe for ContractResult<State>where
State: RefUnwindSafe,
impl<State> Send for ContractResult<State>where
State: Send,
impl<State> Sync for ContractResult<State>where
State: Sync,
impl<State> Unpin for ContractResult<State>where
State: Unpin,
impl<State> UnwindSafe for ContractResult<State>where
State: UnwindSafe,
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