pub struct ToolIcon {
pub src: String,
pub mime_type: Option<String>,
pub sizes: Option<Vec<String>>,
}Expand description
Icon for tool display in user interfaces
Fields§
§src: StringURL or data URI of the icon
mime_type: Option<String>MIME type of the icon (e.g., “image/png”, “image/svg+xml”)
sizes: Option<Vec<String>>Available sizes (e.g., [“48x48”, “96x96”])
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolIcon
impl<'de> Deserialize<'de> for ToolIcon
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 ToolIcon
impl RefUnwindSafe for ToolIcon
impl Send for ToolIcon
impl Sync for ToolIcon
impl Unpin for ToolIcon
impl UnwindSafe for ToolIcon
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