pub struct ScriptResult {
pub success: bool,
pub value: Value,
pub error: Option<String>,
pub execution_time_ms: u64,
pub operations_count: u64,
pub logs: Vec<String>,
}Expand description
脚本执行结果
Fields§
§success: bool是否成功
value: Value返回值
error: Option<String>错误信息
execution_time_ms: u64执行时间(毫秒)
operations_count: u64运算次数
logs: Vec<String>日志输出
Implementations§
Source§impl ScriptResult
impl ScriptResult
Trait Implementations§
Source§impl Clone for ScriptResult
impl Clone for ScriptResult
Source§fn clone(&self) -> ScriptResult
fn clone(&self) -> ScriptResult
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 ScriptResult
impl Debug for ScriptResult
Source§impl<'de> Deserialize<'de> for ScriptResult
impl<'de> Deserialize<'de> for ScriptResult
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 Freeze for ScriptResult
impl RefUnwindSafe for ScriptResult
impl Send for ScriptResult
impl Sync for ScriptResult
impl Unpin for ScriptResult
impl UnsafeUnpin for ScriptResult
impl UnwindSafe for ScriptResult
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