pub struct PackMcpLog {
pub context: PackLogContext,
pub error: Option<PackMcpLogError>,
pub message: Option<String>,
pub type_: PackMcpLogType,
}Expand description
Pack log generated by an MCP (Model Context Protocol) operation.
JSON schema
{
"description": "Pack log generated by an MCP (Model Context Protocol)
operation.",
"type": "object",
"required": [
"context",
"type"
],
"properties": {
"context": {
"$ref": "#/components/schemas/PackLogContext"
},
"error": {
"description": "Error info if this invocation resulted in an
error.",
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
},
"stack": {
"type": "string"
}
},
"additionalProperties": false
},
"message": {
"description": "A descriptive message about the MCP operation.",
"type": "string"
},
"type": {
"type": "string",
"enum": [
"mcp"
],
"x-tsType": "PackLogType.Mcp"
}
},
"additionalProperties": false,
"x-schema-name": "PackMcpLog"
}Fields§
§context: PackLogContext§error: Option<PackMcpLogError>§message: Option<String>A descriptive message about the MCP operation.
type_: PackMcpLogTypeTrait Implementations§
Source§impl Clone for PackMcpLog
impl Clone for PackMcpLog
Source§fn clone(&self) -> PackMcpLog
fn clone(&self) -> PackMcpLog
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 PackMcpLog
impl Debug for PackMcpLog
Source§impl<'de> Deserialize<'de> for PackMcpLog
impl<'de> Deserialize<'de> for PackMcpLog
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<&PackMcpLog> for PackMcpLog
impl From<&PackMcpLog> for PackMcpLog
Source§fn from(value: &PackMcpLog) -> Self
fn from(value: &PackMcpLog) -> Self
Converts to this type from the input type.
Source§impl From<PackMcpLog> for PackLog
impl From<PackMcpLog> for PackLog
Source§fn from(value: PackMcpLog) -> Self
fn from(value: PackMcpLog) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackMcpLog
impl RefUnwindSafe for PackMcpLog
impl Send for PackMcpLog
impl Sync for PackMcpLog
impl Unpin for PackMcpLog
impl UnwindSafe for PackMcpLog
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