diff --git a/src/models.rs b/src/models.rs index b5f9989..b34f11c 100644 --- a/src/models.rs +++ b/src/models.rs @@ -37,6 +37,7 @@ pub struct PackageInfo { pub depends: Vec, pub make_depends: Vec, pub opt_depends: Vec, + pub check_depends: Vec } impl From for PackageInfo { @@ -63,11 +64,12 @@ impl From for PackageInfo { depends: info.depends, opt_depends: info.opt_depends, make_depends: info.make_depends, + check_depends: info.check_depends, } } } -/// Full packge info with all fields as a workaround +/// Full package info with all fields as a workaround /// as serde doesn't support aliases in flattened structs #[derive(Clone, Debug, Deserialize)] #[serde(rename_all = "PascalCase")] @@ -79,6 +81,8 @@ pub(crate) struct PackageInfoRaw { #[serde(default)] pub opt_depends: Vec, #[serde(default)] + pub check_depends: Vec, + #[serde(default)] pub make_depends: Vec, pub description: Option, pub first_submitted: u64, @@ -112,7 +116,7 @@ pub(crate) struct AURResponse { pub error: Option, } -/// Represents the type of aur response +/// Represents the type of AUR response #[derive(Clone, Debug, Serialize, Deserialize)] #[serde(rename_all = "lowercase")] pub(crate) enum ResponseType { diff --git a/src/rpcs/search.rs b/src/rpcs/search.rs index 139b210..3929d05 100644 --- a/src/rpcs/search.rs +++ b/src/rpcs/search.rs @@ -30,13 +30,13 @@ pub enum SearchField { NameDesc, /// Searches by package maintainer Maintainer, - /// Searches for packages that depend on the given keywods + /// Searches for packages that depend on the given keywords Depends, /// Searches for packages that require the given keywords to be build MakeDepends, - /// Searches for packages that optionally depend on the given keywods + /// Searches for packages that optionally depend on the given keywords OptDepends, - /// Searches for packages that require the given keywods to be present + /// Searches for packages that require the given keywords to be present CheckDepends, }