pub struct ContentItem {
pub content_type: String,
pub text: String,
}Expand description
One block of tool-result content.
This server only ever emits text, so the type is not an enum: a
type tag plus the text is the whole story.
Fields§
§content_type: StringMCP content discriminator; always "text" here.
text: StringThe text itself.
Implementations§
Trait Implementations§
Source§impl Debug for ContentItem
impl Debug for ContentItem
Auto Trait Implementations§
impl Freeze for ContentItem
impl RefUnwindSafe for ContentItem
impl Send for ContentItem
impl Sync for ContentItem
impl Unpin for ContentItem
impl UnsafeUnpin for ContentItem
impl UnwindSafe for ContentItem
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