pub struct FunctionResult {
pub value: Option<Value>,
pub logs: Vec<LogEntry>,
pub duration: Duration,
pub memory_peak_bytes: u64,
}Expand description
Result of a function invocation.
Fields§
§value: Option<Value>Return value from the function (may be None if function returns void).
logs: Vec<LogEntry>All logs captured during execution.
duration: DurationTotal execution duration.
memory_peak_bytes: u64Peak memory usage in bytes.
Trait Implementations§
Source§impl Clone for FunctionResult
impl Clone for FunctionResult
Source§fn clone(&self) -> FunctionResult
fn clone(&self) -> FunctionResult
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 FunctionResult
impl Debug for FunctionResult
Source§impl<'de> Deserialize<'de> for FunctionResult
impl<'de> Deserialize<'de> for FunctionResult
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 FunctionResult
impl RefUnwindSafe for FunctionResult
impl Send for FunctionResult
impl Sync for FunctionResult
impl Unpin for FunctionResult
impl UnsafeUnpin for FunctionResult
impl UnwindSafe for FunctionResult
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