pub struct RefinedSearchConfig {
pub engines: Vec<SearchEngineDefinition>,
pub app_default_engine_id: Option<String>,
pub app_private_default_engine_id: Option<String>,
}
Expand description
Details of the search engines to display to the user, generated as a result of processing the search configuration.
Fields§
§engines: Vec<SearchEngineDefinition>
A sorted list of engines. Clients may use the engine in the order that this list is specified, or they may implement their own order if they have other requirements.
The application default engines should not be assumed from this order in case of future changes.
The sort order is:
- Application Default Engine
- Application Default Engine for Private Mode (if specified & different)
- Engines sorted by descending
SearchEngineDefinition.orderHint
- Any other engines in alphabetical order (locale based comparison)
app_default_engine_id: Option<String>
The identifier of the engine that should be used for the application default engine. If this is undefined, an error has occurred, and the application should either default to the first engine in the engines list or otherwise handle appropriately.
app_private_default_engine_id: Option<String>
If specified, the identifier of the engine that should be used for the application default engine in private browsing mode. Only desktop uses this currently.
Trait Implementations§
source§impl<UT> ConvertError<UT> for RefinedSearchConfig
impl<UT> ConvertError<UT> for RefinedSearchConfig
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
source§impl Debug for RefinedSearchConfig
impl Debug for RefinedSearchConfig
source§impl<UT> FfiConverter<UT> for RefinedSearchConfig
impl<UT> FfiConverter<UT> for RefinedSearchConfig
source§const TYPE_ID_META: MetadataBuffer = _
const TYPE_ID_META: MetadataBuffer = _
source§type FfiType = RustBuffer
type FfiType = RustBuffer
source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
source§impl<UT> Lift<UT> for RefinedSearchConfig
impl<UT> Lift<UT> for RefinedSearchConfig
source§impl<UT> LiftRef<UT> for RefinedSearchConfig
impl<UT> LiftRef<UT> for RefinedSearchConfig
source§impl<UT> LiftReturn<UT> for RefinedSearchConfig
impl<UT> LiftReturn<UT> for RefinedSearchConfig
source§type ReturnType = <RefinedSearchConfig as Lift<UT>>::FfiType
type ReturnType = <RefinedSearchConfig as Lift<UT>>::FfiType
source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
source§impl<UT> Lower<UT> for RefinedSearchConfig
impl<UT> Lower<UT> for RefinedSearchConfig
source§impl<UT> LowerError<UT> for RefinedSearchConfig
impl<UT> LowerError<UT> for RefinedSearchConfig
source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
source§impl<UT> LowerReturn<UT> for RefinedSearchConfig
impl<UT> LowerReturn<UT> for RefinedSearchConfig
source§type ReturnType = <RefinedSearchConfig as Lower<UT>>::FfiType
type ReturnType = <RefinedSearchConfig as Lower<UT>>::FfiType
source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
source§impl PartialEq for RefinedSearchConfig
impl PartialEq for RefinedSearchConfig
source§impl<UT> TypeId<UT> for RefinedSearchConfig
impl<UT> TypeId<UT> for RefinedSearchConfig
const TYPE_ID_META: MetadataBuffer = _
impl StructuralPartialEq for RefinedSearchConfig
Auto Trait Implementations§
impl Freeze for RefinedSearchConfig
impl RefUnwindSafe for RefinedSearchConfig
impl Send for RefinedSearchConfig
impl Sync for RefinedSearchConfig
impl Unpin for RefinedSearchConfig
impl UnwindSafe for RefinedSearchConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Read more