pub struct ResourceIcon {
pub src: String,
pub mime_type: Option<String>,
pub sizes: Vec<String>,
pub theme: Option<Value>,
pub extensions: Extensions,
}Expand description
An icon for a resource link. 2025-11-25, SEP-973.
https://github.com/modelcontextprotocol/modelcontextprotocol/issues/973
Fields§
§src: StringThe image itself, as a data URI.
mime_type: Option<String>The media type, if the URI does not imply one.
sizes: Vec<String>The sizes this icon is usable at.
theme: Option<Value>How the icon is meant to be themed, when the scheme supports it.
Untyped in every revision that has it, so it is a JsonValue rather
than a modelled shape. It is still a named field, which means a codec
that left it out would lose it — extra would not catch it, because
the schema already claimed the name.
extensions: ExtensionsUnmodelled fields.
Implementations§
Trait Implementations§
Source§impl Clone for ResourceIcon
impl Clone for ResourceIcon
Source§impl Debug for ResourceIcon
impl Debug for ResourceIcon
Source§impl PartialEq for ResourceIcon
impl PartialEq for ResourceIcon
impl StructuralPartialEq for ResourceIcon
Auto Trait Implementations§
impl Freeze for ResourceIcon
impl RefUnwindSafe for ResourceIcon
impl Send for ResourceIcon
impl Sync for ResourceIcon
impl Unpin for ResourceIcon
impl UnsafeUnpin for ResourceIcon
impl UnwindSafe for ResourceIcon
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