diff options
| author | 2025-01-05 04:39:18 -0600 | |
|---|---|---|
| committer | 2025-01-05 04:39:18 -0600 | |
| commit | a757414560aba4247eb0bd93cf954968fd006f7c (patch) | |
| tree | 7523186408e3ad85706e9c1e1ca2070e9660ee20 /src/version.rs | |
| parent | moo (diff) | |
idr what I changed
Diffstat (limited to 'src/version.rs')
| -rw-r--r-- | src/version.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/version.rs b/src/version.rs index 188b88a..078927d 100644 --- a/src/version.rs +++ b/src/version.rs @@ -32,7 +32,7 @@ pub enum OperatingSystem { } #[derive(Debug, Clone)] -struct WrappedRegex(Regex); +pub struct WrappedRegex(Regex); impl Deref for WrappedRegex { type Target = Regex; @@ -67,7 +67,8 @@ impl<'de> Deserialize<'de> for WrappedRegex { #[derive(Deserialize, Debug, Clone)] pub struct OSRestriction { - pub name: Option<OperatingSystem>, + #[serde(rename = "name")] + pub os: Option<OperatingSystem>, pub version: Option<WrappedRegex>, pub arch: Option<WrappedRegex> |
