feat(scraper): added search option

This commit is contained in:
Maieul BOYER 2026-02-09 00:01:07 +01:00
parent 0b17c760cb
commit ac98af1428
Signed by: maix
SSH key fingerprint: SHA256:iqCzqFFF5KjRixmDExqbAltCIj9ndlBWIGJf3t9Ln9g
5 changed files with 77 additions and 3 deletions

View file

@ -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 },
}