pub struct ToolStartPayload {
pub tool_name: String,
pub tool_use_id: String,
pub input_json_size: u64,
pub destructive: bool,
pub deferred: bool,
pub extension: bool,
}Expand description
工具开始执行事件的载荷(在 ToolExecution 之前发出)。
Fields§
§tool_name: String§tool_use_id: String§input_json_size: u64§destructive: bool§deferred: bool§extension: boolAn MCP server’s or a plugin’s tool, not one of the engine’s own.
Trait Implementations§
Source§impl Clone for ToolStartPayload
impl Clone for ToolStartPayload
Source§fn clone(&self) -> ToolStartPayload
fn clone(&self) -> ToolStartPayload
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 ToolStartPayload
impl Debug for ToolStartPayload
Source§impl JsonSchema for ToolStartPayload
impl JsonSchema for ToolStartPayload
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for ToolStartPayload
impl Serialize for ToolStartPayload
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for ToolStartPayload
impl Freeze for ToolStartPayload
impl Move for ToolStartPayload
impl RefUnwindSafe for ToolStartPayload
impl Send for ToolStartPayloadwhere
RawVecInner: Send,
impl Sync for ToolStartPayloadwhere
RawVecInner: Sync,
impl Unpin for ToolStartPayload
impl UnsafeUnpin for ToolStartPayload
impl UnwindSafe for ToolStartPayloadwhere
RawVecInner: UnwindSafe,
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