oa::network::mcp::McpArguments

Validated JSON object passed to every tool call handler. Scalar accessors provide the common application boundary. Self::json and Self::json_field preserve nested values without exposing OA’s private protocol parser as a public JSON framework.

StRust public API

Declaration

pub struct McpArguments<'request> { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn json(&self) -> &str
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn contains(&self, name: &str) -> bool
pub fn json_field(&self, name: &str) -> Result<String>
pub fn string(&self, name: &str) -> Result<String>
pub fn integer(&self, name: &str) -> Result<i64>
pub fn unsigned_integer(&self, name: &str) -> Result<u64>
pub fn number(&self, name: &str) -> Result<f64>
pub fn boolean(&self, name: &str) -> Result<bool>

Public Method Documentation

pub fn json( &self ) -> &str
No public source comment is attached to this declaration.
pub fn is_empty( &self ) -> bool
No public source comment is attached to this declaration.
pub fn len( &self ) -> usize
No public source comment is attached to this declaration.
pub fn contains( &self, name: &str ) -> bool
No public source comment is attached to this declaration.
pub fn json_field( &self, name: &str ) -> Result<String>
No public source comment is attached to this declaration.
pub fn string( &self, name: &str ) -> Result<String>
No public source comment is attached to this declaration.
pub fn integer( &self, name: &str ) -> Result<i64>
No public source comment is attached to this declaration.
pub fn unsigned_integer( &self, name: &str ) -> Result<u64>
No public source comment is attached to this declaration.
pub fn number( &self, name: &str ) -> Result<f64>
No public source comment is attached to this declaration.
pub fn boolean( &self, name: &str ) -> Result<bool>
No public source comment is attached to this declaration.