pub struct Icon {
pub path: PathBuf,
pub index: i32,
}Available on Windows only.
Expand description
Icon resource used by a Windows shortcut.
Fields§
§path: PathBufPath to the file containing the icon resource.
This is typically an executable (.exe), DLL, or .ico file.
index: i32Index of the icon within the file.
An index of 0 selects the first icon. Negative values may be used by
some APIs to indicate a resource ID rather than a zero-based index.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Icon
impl<'de> Deserialize<'de> for Icon
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
impl Eq for Icon
Auto Trait Implementations§
impl Freeze for Icon
impl RefUnwindSafe for Icon
impl Send for Icon
impl Sync for Icon
impl Unpin for Icon
impl UnwindSafe for Icon
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