pub struct ResponseAnnotation {
pub type_: String,
pub start_index: Option<i64>,
pub end_index: Option<i64>,
pub url: Option<String>,
pub title: Option<String>,
pub file_id: Option<String>,
}Expand description
An annotation on response output text (e.g. URL citation, file citation).
Fields§
§type_: StringAnnotation type (e.g. “url_citation”, “file_citation”, “file_path”).
start_index: Option<i64>Start index in the text.
end_index: Option<i64>End index in the text.
url: Option<String>URL for url_citation annotations.
title: Option<String>Title for url_citation annotations.
file_id: Option<String>File ID for file_citation/file_path annotations.
Trait Implementations§
Source§impl Clone for ResponseAnnotation
impl Clone for ResponseAnnotation
Source§fn clone(&self) -> ResponseAnnotation
fn clone(&self) -> ResponseAnnotation
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 ResponseAnnotation
impl Debug for ResponseAnnotation
Source§impl<'de> Deserialize<'de> for ResponseAnnotation
impl<'de> Deserialize<'de> for ResponseAnnotation
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 ResponseAnnotation
impl RefUnwindSafe for ResponseAnnotation
impl Send for ResponseAnnotation
impl Sync for ResponseAnnotation
impl Unpin for ResponseAnnotation
impl UnsafeUnpin for ResponseAnnotation
impl UnwindSafe for ResponseAnnotation
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