pub struct McpResourceIcon {
pub additional_properties: Option<HashMap<String, Value>>,
pub mime_type: Option<String>,
pub sizes: Option<String>,
pub src: String,
pub theme: Option<String>,
}Expand description
A resource icon descriptor plus preserved non-standard icon fields.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§additional_properties: Option<HashMap<String, Value>>Server-provided non-standard icon fields preserved from the MCP response
mime_type: Option<String>Icon MIME type, when known
sizes: Option<String>Icon sizes hint
src: StringIcon URI
theme: Option<String>Theme hint for this icon
Trait Implementations§
Source§impl Clone for McpResourceIcon
impl Clone for McpResourceIcon
Source§fn clone(&self) -> McpResourceIcon
fn clone(&self) -> McpResourceIcon
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 McpResourceIcon
impl Debug for McpResourceIcon
Source§impl Default for McpResourceIcon
impl Default for McpResourceIcon
Source§fn default() -> McpResourceIcon
fn default() -> McpResourceIcon
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpResourceIcon
impl<'de> Deserialize<'de> for McpResourceIcon
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 McpResourceIcon
impl RefUnwindSafe for McpResourceIcon
impl Send for McpResourceIcon
impl Sync for McpResourceIcon
impl Unpin for McpResourceIcon
impl UnsafeUnpin for McpResourceIcon
impl UnwindSafe for McpResourceIcon
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