pub struct GoogleSearchRequest {
pub query: String,
}Expand description
Request body for Google grounded search via Gemini.
This is the premium search backend — quality is significantly higher
than Brave for technical/news queries because it taps into Google’s
index, but billing is per-executed-query at $0.035 each. The model
decides how many queries to run for a single user prompt; check
web_search_queries.len() on the response to see the count.
Fields§
§query: StringSearch query string. Free-form natural language; the model will translate this into one or more concrete Google searches.
Trait Implementations§
Source§impl Clone for GoogleSearchRequest
impl Clone for GoogleSearchRequest
Source§fn clone(&self) -> GoogleSearchRequest
fn clone(&self) -> GoogleSearchRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GoogleSearchRequest
impl Debug for GoogleSearchRequest
Source§impl Default for GoogleSearchRequest
impl Default for GoogleSearchRequest
Source§fn default() -> GoogleSearchRequest
fn default() -> GoogleSearchRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GoogleSearchRequest
impl RefUnwindSafe for GoogleSearchRequest
impl Send for GoogleSearchRequest
impl Sync for GoogleSearchRequest
impl Unpin for GoogleSearchRequest
impl UnsafeUnpin for GoogleSearchRequest
impl UnwindSafe for GoogleSearchRequest
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