pub struct MessageDeltaContentTextAnnotationsFileCitationObject {
pub index: u32,
pub text: Option<String>,
pub file_citation: Option<FileCitation>,
pub start_index: Option<u32>,
pub end_index: Option<u32>,
}
Expand description
A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the “file_search” tool to search files.
Fields§
§index: u32
The index of the annotation in the text content part.
text: Option<String>
The text in the message content that needs to be replaced.
file_citation: Option<FileCitation>
§start_index: Option<u32>
§end_index: Option<u32>
Trait Implementations§
Source§impl Clone for MessageDeltaContentTextAnnotationsFileCitationObject
impl Clone for MessageDeltaContentTextAnnotationsFileCitationObject
Source§fn clone(&self) -> MessageDeltaContentTextAnnotationsFileCitationObject
fn clone(&self) -> MessageDeltaContentTextAnnotationsFileCitationObject
Returns a copy 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<'de> Deserialize<'de> for MessageDeltaContentTextAnnotationsFileCitationObject
impl<'de> Deserialize<'de> for MessageDeltaContentTextAnnotationsFileCitationObject
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
Source§impl PartialEq for MessageDeltaContentTextAnnotationsFileCitationObject
impl PartialEq for MessageDeltaContentTextAnnotationsFileCitationObject
Source§fn eq(
&self,
other: &MessageDeltaContentTextAnnotationsFileCitationObject,
) -> bool
fn eq( &self, other: &MessageDeltaContentTextAnnotationsFileCitationObject, ) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for MessageDeltaContentTextAnnotationsFileCitationObject
Auto Trait Implementations§
impl Freeze for MessageDeltaContentTextAnnotationsFileCitationObject
impl RefUnwindSafe for MessageDeltaContentTextAnnotationsFileCitationObject
impl Send for MessageDeltaContentTextAnnotationsFileCitationObject
impl Sync for MessageDeltaContentTextAnnotationsFileCitationObject
impl Unpin for MessageDeltaContentTextAnnotationsFileCitationObject
impl UnwindSafe for MessageDeltaContentTextAnnotationsFileCitationObject
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