pub enum MCPContent {
Text {
text: String,
},
Image {
data: String,
mime_type: String,
},
Resource {
resource: MCPResourceReference,
},
}
Expand description
MCP content types
Variants§
Text
Text content
Image
Image content
Resource
Resource content
Fields
§
resource: MCPResourceReference
Reference to an MCP resource
Trait Implementations§
Source§impl Clone for MCPContent
impl Clone for MCPContent
Source§fn clone(&self) -> MCPContent
fn clone(&self) -> MCPContent
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MCPContent
impl Debug for MCPContent
Source§impl<'de> Deserialize<'de> for MCPContent
impl<'de> Deserialize<'de> for MCPContent
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 MCPContent
impl RefUnwindSafe for MCPContent
impl Send for MCPContent
impl Sync for MCPContent
impl Unpin for MCPContent
impl UnwindSafe for MCPContent
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