pub struct PackInvocationLog {
pub cache_hit: Option<bool>,
pub context: PackLogContext,
pub duration: Option<f64>,
pub error: Option<PackInvocationLogError>,
pub type_: PackInvocationLogType,
}
Expand description
System logs of the invocations of the Pack.
JSON schema
{
"description": "System logs of the invocations of the Pack.",
"type": "object",
"required": [
"context",
"type"
],
"properties": {
"cacheHit": {
"description": "True if the formula returned a prior result without
executing.",
"type": "boolean"
},
"context": {
"$ref": "#/components/schemas/PackLogContext"
},
"duration": {
"description": "Duration of the formula exeuction in miliseconds.",
"type": "number"
},
"error": {
"description": "Error info if this invocation resulted in an
error.",
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
},
"stack": {
"type": "string"
}
},
"additionalProperties": false
},
"type": {
"type": "string",
"enum": [
"invocation"
],
"x-tsType": "PackLogType.Invocation"
}
},
"additionalProperties": false,
"x-schema-name": "PackInvocationLog"
}
Fields§
§cache_hit: Option<bool>
True if the formula returned a prior result without executing.
context: PackLogContext
§duration: Option<f64>
§error: Option<PackInvocationLogError>
§type_: PackInvocationLogType
Trait Implementations§
Source§impl Clone for PackInvocationLog
impl Clone for PackInvocationLog
Source§fn clone(&self) -> PackInvocationLog
fn clone(&self) -> PackInvocationLog
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 PackInvocationLog
impl Debug for PackInvocationLog
Source§impl<'de> Deserialize<'de> for PackInvocationLog
impl<'de> Deserialize<'de> for PackInvocationLog
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 From<&PackInvocationLog> for PackInvocationLog
impl From<&PackInvocationLog> for PackInvocationLog
Source§fn from(value: &PackInvocationLog) -> Self
fn from(value: &PackInvocationLog) -> Self
Converts to this type from the input type.
Source§impl From<PackInvocationLog> for PackLog
impl From<PackInvocationLog> for PackLog
Source§fn from(value: PackInvocationLog) -> Self
fn from(value: PackInvocationLog) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackInvocationLog
impl RefUnwindSafe for PackInvocationLog
impl Send for PackInvocationLog
impl Sync for PackInvocationLog
impl Unpin for PackInvocationLog
impl UnwindSafe for PackInvocationLog
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