pub struct ToolResultTextContent {
pub text: String,
}Expand description
Text content in a tool result.
Mirrors MCP TextContent.
Fields§
§text: StringThe text content
Trait Implementations§
Source§impl Clone for ToolResultTextContent
impl Clone for ToolResultTextContent
Source§fn clone(&self) -> ToolResultTextContent
fn clone(&self) -> ToolResultTextContent
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 ToolResultTextContent
impl Debug for ToolResultTextContent
Source§impl<'de> Deserialize<'de> for ToolResultTextContent
impl<'de> Deserialize<'de> for ToolResultTextContent
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 PartialEq for ToolResultTextContent
impl PartialEq for ToolResultTextContent
Source§fn eq(&self, other: &ToolResultTextContent) -> bool
fn eq(&self, other: &ToolResultTextContent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolResultTextContent
impl Serialize for ToolResultTextContent
impl StructuralPartialEq for ToolResultTextContent
Auto Trait Implementations§
impl Freeze for ToolResultTextContent
impl RefUnwindSafe for ToolResultTextContent
impl Send for ToolResultTextContent
impl Sync for ToolResultTextContent
impl Unpin for ToolResultTextContent
impl UnsafeUnpin for ToolResultTextContent
impl UnwindSafe for ToolResultTextContent
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