pub struct MessageContentTextAnnotationsFileCitationObject {
pub text: String,
pub file_citation: FileCitation,
pub start_index: u32,
pub end_index: 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§
§text: String
The text in the message content that needs to be replaced.
file_citation: FileCitation
§start_index: u32
§end_index: u32
Trait Implementations§
Source§impl Clone for MessageContentTextAnnotationsFileCitationObject
impl Clone for MessageContentTextAnnotationsFileCitationObject
Source§fn clone(&self) -> MessageContentTextAnnotationsFileCitationObject
fn clone(&self) -> MessageContentTextAnnotationsFileCitationObject
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<'de> Deserialize<'de> for MessageContentTextAnnotationsFileCitationObject
impl<'de> Deserialize<'de> for MessageContentTextAnnotationsFileCitationObject
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 MessageContentTextAnnotationsFileCitationObject
impl PartialEq for MessageContentTextAnnotationsFileCitationObject
Source§fn eq(&self, other: &MessageContentTextAnnotationsFileCitationObject) -> bool
fn eq(&self, other: &MessageContentTextAnnotationsFileCitationObject) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for MessageContentTextAnnotationsFileCitationObject
Auto Trait Implementations§
impl Freeze for MessageContentTextAnnotationsFileCitationObject
impl RefUnwindSafe for MessageContentTextAnnotationsFileCitationObject
impl Send for MessageContentTextAnnotationsFileCitationObject
impl Sync for MessageContentTextAnnotationsFileCitationObject
impl Unpin for MessageContentTextAnnotationsFileCitationObject
impl UnwindSafe for MessageContentTextAnnotationsFileCitationObject
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