pub struct GroundingMetadata {
pub grounding_chunks: Option<Vec<GroundingChunk>>,
pub grounding_supports: Option<Vec<GroundingSupport>>,
pub retrieval_metadata: Option<RetrievalMetadata>,
pub retrieval_queries: Option<Vec<String>>,
pub search_entry_point: Option<SearchEntryPoint>,
pub web_search_queries: Option<Vec<String>>,
}Fields§
§grounding_chunks: Option<Vec<GroundingChunk>>§grounding_supports: Option<Vec<GroundingSupport>>§retrieval_metadata: Option<RetrievalMetadata>§retrieval_queries: Option<Vec<String>>§search_entry_point: Option<SearchEntryPoint>§web_search_queries: Option<Vec<String>>Implementations§
Source§impl GroundingMetadata
impl GroundingMetadata
Sourcepub fn grounding_chunks(self, value: impl Into<Vec<GroundingChunk>>) -> Self
pub fn grounding_chunks(self, value: impl Into<Vec<GroundingChunk>>) -> Self
Sets the grounding_chunks field of this struct.
Sourcepub fn grounding_supports(self, value: impl Into<Vec<GroundingSupport>>) -> Self
pub fn grounding_supports(self, value: impl Into<Vec<GroundingSupport>>) -> Self
Sets the grounding_supports field of this struct.
Sourcepub fn retrieval_metadata(self, value: impl Into<RetrievalMetadata>) -> Self
pub fn retrieval_metadata(self, value: impl Into<RetrievalMetadata>) -> Self
Sets the retrieval_metadata field of this struct.
Sourcepub fn retrieval_queries(self, value: impl Into<Vec<String>>) -> Self
pub fn retrieval_queries(self, value: impl Into<Vec<String>>) -> Self
Sets the retrieval_queries field of this struct.
Sourcepub fn search_entry_point(self, value: impl Into<SearchEntryPoint>) -> Self
pub fn search_entry_point(self, value: impl Into<SearchEntryPoint>) -> Self
Sets the search_entry_point field of this struct.
Sourcepub fn web_search_queries(self, value: impl Into<Vec<String>>) -> Self
pub fn web_search_queries(self, value: impl Into<Vec<String>>) -> Self
Sets the web_search_queries field of this struct.
Trait Implementations§
Source§impl Clone for GroundingMetadata
impl Clone for GroundingMetadata
Source§fn clone(&self) -> GroundingMetadata
fn clone(&self) -> GroundingMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 GroundingMetadata
impl Debug for GroundingMetadata
Source§impl Default for GroundingMetadata
impl Default for GroundingMetadata
Source§fn default() -> GroundingMetadata
fn default() -> GroundingMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GroundingMetadata
impl<'de> Deserialize<'de> for GroundingMetadata
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 GroundingMetadata
impl RefUnwindSafe for GroundingMetadata
impl Send for GroundingMetadata
impl Sync for GroundingMetadata
impl Unpin for GroundingMetadata
impl UnwindSafe for GroundingMetadata
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