diff --git a/components/search/src/configuration_types.rs b/components/search/src/configuration_types.rs index 001dc303ec..3c564de007 100644 --- a/components/search/src/configuration_types.rs +++ b/components/search/src/configuration_types.rs @@ -15,7 +15,7 @@ use std::collections::HashMap; /// The list of possible submission methods for search engine urls. #[derive(Debug, uniffi::Enum, PartialEq, Deserialize, Clone, Default)] #[serde(rename_all = "UPPERCASE")] -pub(crate) enum JSONEngineMethod { +pub enum JSONEngineMethod { Post = 2, #[serde(other)] #[default] @@ -36,7 +36,7 @@ impl JSONEngineMethod { /// configuration. #[derive(Debug, uniffi::Record, PartialEq, Deserialize, Clone, Default)] #[serde(rename_all = "camelCase")] -pub(crate) struct JSONEngineUrl { +pub struct JSONEngineUrl { /// The PrePath and FilePath of the URL. May include variables for engines /// which have a variable FilePath, e.g. `{searchTerms}` for when a search /// term is within the path of the url. diff --git a/components/search/src/lib.rs b/components/search/src/lib.rs index b338b8435a..a2353e143a 100644 --- a/components/search/src/lib.rs +++ b/components/search/src/lib.rs @@ -13,7 +13,7 @@ pub use error::SearchApiError; pub mod selector; pub mod types; -pub(crate) use crate::configuration_types::*; +pub use crate::configuration_types::*; pub use crate::types::*; pub use selector::SearchEngineSelector; pub type SearchApiResult = std::result::Result;