pub struct WebSearchOptions {
pub image_results_enhanced_relevance: Option<bool>,
pub search_context_size: Option<WebSearchOptionsSearchContextSize>,
pub search_type: Option<WebSearchOptionsSearchType>,
pub user_location: Option<Map<String, Value>>,
}Expand description
Web search configuration object.
Fields§
§image_results_enhanced_relevance: Option<bool>When true, applies enhanced relevance filtering to image results. Default: false.
search_context_size: Option<WebSearchOptionsSearchContextSize>Amount of search context to include. Default: low.
search_type: Option<WebSearchOptionsSearchType>Search type.
user_location: Option<Map<String, Value>>User location object (schema not expanded in scraped content).
Implementations§
Source§impl WebSearchOptions
impl WebSearchOptions
pub fn builder() -> WebSearchOptions
Trait Implementations§
Source§impl Clone for WebSearchOptions
impl Clone for WebSearchOptions
Source§impl Debug for WebSearchOptions
impl Debug for WebSearchOptions
Source§impl Default for WebSearchOptions
impl Default for WebSearchOptions
Source§impl<'de> Deserialize<'de> for WebSearchOptions
impl<'de> Deserialize<'de> for WebSearchOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<WebSearchOptions> for WebSearchOptions
impl From<WebSearchOptions> for WebSearchOptions
Source§fn from(value: WebSearchOptions) -> Self
fn from(value: WebSearchOptions) -> Self
Converts to this type from the input type.
Source§impl Serialize for WebSearchOptions
impl Serialize for WebSearchOptions
Source§impl TryFrom<WebSearchOptions> for WebSearchOptions
impl TryFrom<WebSearchOptions> for WebSearchOptions
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: WebSearchOptions) -> Result<Self, ConversionError>
fn try_from(value: WebSearchOptions) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for WebSearchOptions
impl Freeze for WebSearchOptions
impl Move for WebSearchOptions
impl RefUnwindSafe for WebSearchOptions
impl Send for WebSearchOptions
impl Sync for WebSearchOptions
impl Unpin for WebSearchOptions
impl UnsafeUnpin for WebSearchOptionswhere
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for WebSearchOptions
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
Mutably borrows from an owned value. Read more