tauri-plugin-app-icon 0.1.0

A Tauri plugin to programmatically change the app icon.
Documentation
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct IconOptions {
    pub name: String,
    pub disable: Option<Vec<String>>,
    #[serde(default)]
    pub suppress_notification: bool,
}

#[derive(Debug, Clone, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct ResetOptions {
    #[serde(default)]
    pub suppress_notification: bool,
    pub disable: Option<Vec<String>>,
}

#[derive(Debug, Clone, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct IsSupportedResponse {
    pub value: bool,
}

#[derive(Debug, Clone, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct GetNameResponse {
    pub value: Option<String>,
}