feat(scraper): added search option
This commit is contained in:
parent
0b17c760cb
commit
ac98af1428
5 changed files with 77 additions and 3 deletions
|
|
@ -115,3 +115,13 @@ pub struct Profile {
|
|||
pub discord: Option<String>,
|
||||
pub github: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq, Hash)]
|
||||
#[serde(tag = "type")]
|
||||
pub enum Search {
|
||||
#[serde(rename = "project")]
|
||||
Project { v: SmolStr, s: SmolStr },
|
||||
|
||||
#[serde(rename = "user")]
|
||||
User { v: SmolStr, s: SmolStr },
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue