pub struct ScriptResult {
pub return_value: Option<Value>,
pub modified_variables: HashMap<String, Value>,
pub errors: Vec<String>,
pub execution_time_ms: u64,
}
Expand description
Results from script execution
Fields§
§return_value: Option<Value>
Return value from the script
modified_variables: HashMap<String, Value>
Variables modified by the script
errors: Vec<String>
Errors encountered during execution
execution_time_ms: u64
Execution time in milliseconds
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 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