Skip to content

Commit

Permalink
Merge pull request #209 from Enraged-Dun-Cookie-Development-Team/feat…
Browse files Browse the repository at this point in the history
…-更改工具链接字段

👔 修改工具链接字段类型以及删除一个字段
  • Loading branch information
phidiaLam authored Sep 18, 2024
2 parents f729839 + f5361a6 commit 80eae29
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,21 @@ pub struct LocalizedTags {
pub en_us: Vec<String>,
}

#[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize)]
#[serde(rename_all_fields = "SCREAMING_SNAKE_CASE")]
pub enum Region {
ChinaMainland,
ExceptChinaMainland,
}

#[derive(Debug, Clone, Serialize, Deserialize, TypedBuilder)]
pub struct Link {
#[serde(default)]
pub primary: bool,
pub regionality: String,
pub service: String,
pub regionality: Region,
pub localized_name: LocalizedLanguage,
pub url: Url,
}

#[derive(Debug, Clone, Serialize, Deserialize, TypedBuilder, SubModel)]
#[sub_model(all(
name = "ToolLinkUpdate",
Expand Down

0 comments on commit 80eae29

Please sign in to comment.