pub struct ActionRequest {
pub tool: String,
pub category: ToolCategory,
pub summary: String,
pub command: Option<String>,
pub path: Option<String>,
pub mcp_read_only_hint: bool,
}Fields§
§tool: String§category: ToolCategory§summary: String§command: Option<String>§path: Option<String>§mcp_read_only_hint: boolFor ToolCategory::Mcp only: the server-advertised readOnlyHint.
UNTRUSTED (servers self-declare), so it can only keep a read at the
permissiveness every MCP tool had before the external-writes floor
existed — it never grants more than the safety mode gives. false
(the default, and every unannotated tool) means write-shaped and
subject to the floor.
Implementations§
Source§impl ActionRequest
impl ActionRequest
Trait Implementations§
Source§impl Clone for ActionRequest
impl Clone for ActionRequest
Source§fn clone(&self) -> ActionRequest
fn clone(&self) -> ActionRequest
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 ActionRequest
impl Debug for ActionRequest
Source§impl<'de> Deserialize<'de> for ActionRequest
impl<'de> Deserialize<'de> for ActionRequest
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
impl Eq for ActionRequest
Source§impl PartialEq for ActionRequest
impl PartialEq for ActionRequest
Source§impl Serialize for ActionRequest
impl Serialize for ActionRequest
impl StructuralPartialEq for ActionRequest
Auto Trait Implementations§
impl Freeze for ActionRequest
impl RefUnwindSafe for ActionRequest
impl Send for ActionRequest
impl Sync for ActionRequest
impl Unpin for ActionRequest
impl UnsafeUnpin for ActionRequest
impl UnwindSafe for ActionRequest
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