pub struct MCPResourceContent {
pub uri: String,
pub mime_type: String,
pub text: Option<String>,
pub blob: Option<String>,
}
Expand description
MCP resource content
Fields§
§uri: String
Content URI
mime_type: String
Content MIME type
text: Option<String>
Content data
blob: Option<String>
Binary content (base64 encoded)
Trait Implementations§
Source§impl Clone for MCPResourceContent
impl Clone for MCPResourceContent
Source§fn clone(&self) -> MCPResourceContent
fn clone(&self) -> MCPResourceContent
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 MCPResourceContent
impl Debug for MCPResourceContent
Source§impl<'de> Deserialize<'de> for MCPResourceContent
impl<'de> Deserialize<'de> for MCPResourceContent
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 MCPResourceContent
impl RefUnwindSafe for MCPResourceContent
impl Send for MCPResourceContent
impl Sync for MCPResourceContent
impl Unpin for MCPResourceContent
impl UnwindSafe for MCPResourceContent
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