pub struct GoogleSearchResponse {
pub answer: String,
pub citations: Vec<GoogleSearchCitation>,
pub search_entry_point: String,
pub web_search_queries: Vec<String>,
pub supports: Vec<GoogleSearchSupport>,
}Expand description
Response from the Google grounded search endpoint.
Fields§
§answer: StringThe grounded answer text Gemini produced. May be empty if the model decided no answer was warranted.
citations: Vec<GoogleSearchCitation>Web sources Gemini grounded its answer on.
search_entry_point: StringToS-required HTML/CSS widget showing search-suggestion chips. Google’s grounding terms require this to be rendered alongside any grounded response. Pass it through verbatim — do not modify.
web_search_queries: Vec<String>The actual queries Gemini executed against Google Search. Non-empty length is the BILLING UNIT on the backend.
supports: Vec<GoogleSearchSupport>Inline-citation spans linking text segments to citations.
Trait Implementations§
Source§impl Clone for GoogleSearchResponse
impl Clone for GoogleSearchResponse
Source§fn clone(&self) -> GoogleSearchResponse
fn clone(&self) -> GoogleSearchResponse
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 GoogleSearchResponse
impl Debug for GoogleSearchResponse
Source§impl<'de> Deserialize<'de> for GoogleSearchResponse
impl<'de> Deserialize<'de> for GoogleSearchResponse
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
Auto Trait Implementations§
impl Freeze for GoogleSearchResponse
impl RefUnwindSafe for GoogleSearchResponse
impl Send for GoogleSearchResponse
impl Sync for GoogleSearchResponse
impl Unpin for GoogleSearchResponse
impl UnsafeUnpin for GoogleSearchResponse
impl UnwindSafe for GoogleSearchResponse
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