-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b7bacb
commit 795ba47
Showing
7 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Deserialize, Serialize, Clone, Hash, PartialEq, Eq)] | ||
#[serde(tag = "type", rename_all = "lowercase")] | ||
pub enum AddonType { | ||
Url { | ||
url: String, | ||
}, | ||
|
||
#[serde(alias = "mr")] | ||
Modrinth { | ||
id: String, | ||
version: String, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
mod packwiz_mod; | ||
mod packwiz_pack; | ||
|
||
use anyhow::Result; | ||
pub use packwiz_pack::*; | ||
Check warning on line 5 in src/api/models/packwiz/mod.rs GitHub Actions / clippyunused import: `packwiz_pack::*`
|
||
pub use packwiz_mod::*; | ||
|
||
use super::Addon; | ||
|
||
impl PackwizMod { | ||
pub async fn into_addon(&self) -> Result<Addon> { | ||
Check failure on line 11 in src/api/models/packwiz/mod.rs GitHub Actions / clippymethods called `into_*` usually take `self` by value
Check warning on line 11 in src/api/models/packwiz/mod.rs GitHub Actions / clippymethod `into_addon` is never used
|
||
todo!() | ||
} | ||
Check warning on line 13 in src/api/models/packwiz/mod.rs GitHub Actions / clippyunused `async` for function with no await statements
|
||
} |
File renamed without changes.
Empty file.