pub struct SearchEngineDefinition {
pub aliases: Vec<String>,
pub charset: String,
pub classification: SearchEngineClassification,
pub identifier: String,
pub name: String,
pub partner_code: String,
pub telemetry_suffix: Option<String>,
pub urls: SearchEngineUrls,
pub order_hint: Option<u8>,
}
Expand description
A definition for an individual search engine to be presented to the user.
Fields§
§aliases: Vec<String>
A list of aliases for this engine.
charset: String
The character set this engine uses for queries.
classification: SearchEngineClassification
The classification of search engine according to the main search types (e.g. general, shopping, travel, dictionary). Currently, only marking as a general search engine is supported. On Android, only general search engines may be selected as “default” search engines.
identifier: String
The identifier of the search engine. This is used as an internal identifier, e.g. for saving the user’s settings for the engine. It is also used to form the base telemetry id and may be extended by telemetrySuffix.
name: String
The user visible name of the search engine.
partner_code: String
The partner code for the engine. This will be inserted into parameters
which include {partnerCode}
. May be the empty string.
telemetry_suffix: Option<String>
Optional suffix that is appended to the search engine identifier
following a dash, i.e. <identifier>-<suffix>
urls: SearchEngineUrls
The URLs associated with the search engine.
order_hint: Option<u8>
A hint to the order that this engine should be in the engine list. This
is derived from the engineOrders
section of the search configuration.
The higher the number, the nearer to the front it should be.
If the number is not specified, other methods of sorting may be relied
upon (e.g. alphabetical).
Trait Implementations§
source§impl Clone for SearchEngineDefinition
impl Clone for SearchEngineDefinition
source§fn clone(&self) -> SearchEngineDefinition
fn clone(&self) -> SearchEngineDefinition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<UT> ConvertError<UT> for SearchEngineDefinition
impl<UT> ConvertError<UT> for SearchEngineDefinition
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
source§impl Debug for SearchEngineDefinition
impl Debug for SearchEngineDefinition
source§impl Default for SearchEngineDefinition
impl Default for SearchEngineDefinition
source§fn default() -> SearchEngineDefinition
fn default() -> SearchEngineDefinition
source§impl<UT> FfiConverter<UT> for SearchEngineDefinition
impl<UT> FfiConverter<UT> for SearchEngineDefinition
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 SearchEngineDefinition
impl<UT> Lift<UT> for SearchEngineDefinition
source§impl<UT> LiftRef<UT> for SearchEngineDefinition
impl<UT> LiftRef<UT> for SearchEngineDefinition
source§impl<UT> LiftReturn<UT> for SearchEngineDefinition
impl<UT> LiftReturn<UT> for SearchEngineDefinition
source§type ReturnType = <SearchEngineDefinition as Lift<UT>>::FfiType
type ReturnType = <SearchEngineDefinition 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 SearchEngineDefinition
impl<UT> Lower<UT> for SearchEngineDefinition
source§impl<UT> LowerError<UT> for SearchEngineDefinition
impl<UT> LowerError<UT> for SearchEngineDefinition
source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
source§impl<UT> LowerReturn<UT> for SearchEngineDefinition
impl<UT> LowerReturn<UT> for SearchEngineDefinition
source§type ReturnType = <SearchEngineDefinition as Lower<UT>>::FfiType
type ReturnType = <SearchEngineDefinition 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 SearchEngineDefinition
impl PartialEq for SearchEngineDefinition
source§impl<UT> TypeId<UT> for SearchEngineDefinition
impl<UT> TypeId<UT> for SearchEngineDefinition
const TYPE_ID_META: MetadataBuffer = _
impl StructuralPartialEq for SearchEngineDefinition
Auto Trait Implementations§
impl Freeze for SearchEngineDefinition
impl RefUnwindSafe for SearchEngineDefinition
impl Send for SearchEngineDefinition
impl Sync for SearchEngineDefinition
impl Unpin for SearchEngineDefinition
impl UnwindSafe for SearchEngineDefinition
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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