pub struct MessageDeltaContentTextAnnotationsFileCitationObject {
pub index: i64,
pub text: Option<String>,
pub file_citation: Option<FileCitation>,
pub start_index: Option<i64>,
pub end_index: Option<i64>,
}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: i64The 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<i64>§end_index: Option<i64>Implementations§
Source§impl MessageDeltaContentTextAnnotationsFileCitationObject
impl MessageDeltaContentTextAnnotationsFileCitationObject
Sourcepub fn builder() -> MessageDeltaContentTextAnnotationsFileCitationObjectBuilder<((), (), (), (), ())>
pub fn builder() -> MessageDeltaContentTextAnnotationsFileCitationObjectBuilder<((), (), (), (), ())>
Create a builder for building MessageDeltaContentTextAnnotationsFileCitationObject.
On the builder, call .index(...), .text(...)(optional), .file_citation(...)(optional), .start_index(...)(optional), .end_index(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of MessageDeltaContentTextAnnotationsFileCitationObject.
Trait Implementations§
Source§impl Clone for MessageDeltaContentTextAnnotationsFileCitationObject
impl Clone for MessageDeltaContentTextAnnotationsFileCitationObject
Source§fn clone(&self) -> MessageDeltaContentTextAnnotationsFileCitationObject
fn clone(&self) -> MessageDeltaContentTextAnnotationsFileCitationObject
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 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