pub struct McpResourceContents {
pub uri: String,
pub mime_type: Option<String>,
pub text: Option<String>,
pub blob: Option<String>,
pub meta: Option<Value>,
}Fields§
§uri: String§mime_type: Option<String>§text: Option<String>§blob: Option<String>§meta: Option<Value>Trait Implementations§
Source§impl Clone for McpResourceContents
impl Clone for McpResourceContents
Source§fn clone(&self) -> McpResourceContents
fn clone(&self) -> McpResourceContents
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 McpResourceContents
impl Debug for McpResourceContents
Source§impl<'de> Deserialize<'de> for McpResourceContents
impl<'de> Deserialize<'de> for McpResourceContents
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 McpResourceContents
impl PartialEq for McpResourceContents
Source§impl Serialize for McpResourceContents
impl Serialize for McpResourceContents
impl StructuralPartialEq for McpResourceContents
Auto Trait Implementations§
impl Freeze for McpResourceContents
impl RefUnwindSafe for McpResourceContents
impl Send for McpResourceContents
impl Sync for McpResourceContents
impl Unpin for McpResourceContents
impl UnsafeUnpin for McpResourceContents
impl UnwindSafe for McpResourceContents
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