pub struct GoogleSearchSupport {
pub start_index: i32,
pub end_index: i32,
pub text: String,
pub grounding_chunk_indices: Vec<i32>,
}Expand description
Links a span of the answer text to one or more citation indices, enabling inline-citation rendering on the frontend.
Fields§
§start_index: i32Byte offset where this span starts in the answer text.
end_index: i32Byte offset where this span ends (exclusive).
text: StringThe actual text span — included for resilience when the answer has been streamed/transformed and indices no longer line up.
grounding_chunk_indices: Vec<i32>Indices into citations for the sources backing this span.
Trait Implementations§
Source§impl Clone for GoogleSearchSupport
impl Clone for GoogleSearchSupport
Source§fn clone(&self) -> GoogleSearchSupport
fn clone(&self) -> GoogleSearchSupport
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 GoogleSearchSupport
impl Debug for GoogleSearchSupport
Source§impl<'de> Deserialize<'de> for GoogleSearchSupport
impl<'de> Deserialize<'de> for GoogleSearchSupport
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 GoogleSearchSupport
impl RefUnwindSafe for GoogleSearchSupport
impl Send for GoogleSearchSupport
impl Sync for GoogleSearchSupport
impl Unpin for GoogleSearchSupport
impl UnsafeUnpin for GoogleSearchSupport
impl UnwindSafe for GoogleSearchSupport
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