pub struct WebMcpResult {
pub success: bool,
pub value: Value,
pub error: Option<String>,
}Expand description
Result of executing a WebMCP tool.
Fields§
§success: boolWhether the tool execution succeeded.
value: ValueThe tool’s return value.
error: Option<String>Error message, if any.
Trait Implementations§
Source§impl Clone for WebMcpResult
impl Clone for WebMcpResult
Source§fn clone(&self) -> WebMcpResult
fn clone(&self) -> WebMcpResult
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 WebMcpResult
impl Debug for WebMcpResult
Source§impl<'de> Deserialize<'de> for WebMcpResult
impl<'de> Deserialize<'de> for WebMcpResult
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
Auto Trait Implementations§
impl Freeze for WebMcpResult
impl RefUnwindSafe for WebMcpResult
impl Send for WebMcpResult
impl Sync for WebMcpResult
impl Unpin for WebMcpResult
impl UnsafeUnpin for WebMcpResult
impl UnwindSafe for WebMcpResult
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