Skip to content

Commit

Permalink
Rename from FaviconSet to FaviconVendor
Browse files Browse the repository at this point in the history
  • Loading branch information
lindhe committed Aug 8, 2023
1 parent 2a860c5 commit b096a55
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@ use std::collections::HashMap;

/// Metadata about a favicon set.
#[derive(Serialize, Deserialize, Debug)]
pub struct FaviconSetMetadata {
pub struct FaviconVendorMetadata {
pub name: String,
pub attribution: String,
pub license_name: String,
pub license_url: String,
pub url: String,
}

/// A FaviconSet can be for example "OpenMoji", "Noto" or "MaterialDesignIcons".
/// A FaviconVendor can be for example "OpenMoji", "Noto" or "MaterialDesignIcons".
#[derive(Serialize, Deserialize, Debug)]
#[serde(untagged)]
pub enum FaviconSet {
Set(HashMap<String, FaviconSetMetadata>),
pub enum FaviconVendor {
Set(HashMap<String, FaviconVendorMetadata>),
}

#[derive(Serialize, Deserialize, Debug)]
#[serde(rename_all = "lowercase")]
pub struct MetadataConfig {
emojis: FaviconSet,
icons: FaviconSet,
emojis: FaviconVendor,
icons: FaviconVendor,
}

pub fn make_body(
Expand Down

0 comments on commit b096a55

Please sign in to comment.