pub struct McpToolIcon { /* private fields */ }Expand description
Static icon metadata for an MCP tool definition.
Implementations§
Source§impl McpToolIcon
impl McpToolIcon
Sourcepub const fn new(src: &'static str) -> Self
pub const fn new(src: &'static str) -> Self
Create icon metadata from an icon resource URI or data URI.
Sourcepub const fn with_mime_type(self, mime_type: &'static str) -> Self
pub const fn with_mime_type(self, mime_type: &'static str) -> Self
Override the icon MIME type.
Sourcepub const fn with_sizes(self, sizes: &'static [&'static str]) -> Self
pub const fn with_sizes(self, sizes: &'static [&'static str]) -> Self
Declare supported icon sizes such as "48x48" or "any".
Sourcepub const fn with_theme(self, theme: McpIconTheme) -> Self
pub const fn with_theme(self, theme: McpIconTheme) -> Self
Declare the icon’s intended theme.
Sourcepub const fn theme(self) -> Option<McpIconTheme>
pub const fn theme(self) -> Option<McpIconTheme>
Returns the icon theme.
Trait Implementations§
Source§impl Clone for McpToolIcon
impl Clone for McpToolIcon
impl Copy for McpToolIcon
Source§impl Debug for McpToolIcon
impl Debug for McpToolIcon
impl Eq for McpToolIcon
Source§impl PartialEq for McpToolIcon
impl PartialEq for McpToolIcon
impl StructuralPartialEq for McpToolIcon
Auto Trait Implementations§
impl Freeze for McpToolIcon
impl RefUnwindSafe for McpToolIcon
impl Send for McpToolIcon
impl Sync for McpToolIcon
impl Unpin for McpToolIcon
impl UnsafeUnpin for McpToolIcon
impl UnwindSafe for McpToolIcon
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.