pub struct McpIcon {
pub src: String,
pub mime_type: Option<String>,
pub sizes: Vec<String>,
}Expand description
An icon for the server, a tool, a resource or a prompt (MCP 2025-11-25):
src is an https: or data: URL.
Fields§
§src: String§mime_type: Option<String>§sizes: Vec<String>e.g. ["48x48"], ["any"] for SVG.
Implementations§
Trait Implementations§
impl Eq for McpIcon
impl StructuralPartialEq for McpIcon
Auto Trait Implementations§
impl Freeze for McpIcon
impl RefUnwindSafe for McpIcon
impl Send for McpIcon
impl Sync for McpIcon
impl Unpin for McpIcon
impl UnsafeUnpin for McpIcon
impl UnwindSafe for McpIcon
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.