pub struct ContainerFileCitationBody {
pub container_id: String,
pub file_id: String,
pub start_index: i64,
pub end_index: i64,
pub filename: String,
}
Expand description
A citation for a container file used to generate a model response.
Fields§
§container_id: String
The ID of the container file.
file_id: String
The ID of the file.
start_index: i64
The index of the first character of the container file citation in the message.
end_index: i64
The index of the last character of the container file citation in the message.
filename: String
The filename of the container file cited.
Implementations§
Source§impl ContainerFileCitationBody
impl ContainerFileCitationBody
Sourcepub fn builder() -> ContainerFileCitationBodyBuilder<((), (), (), (), ())>
pub fn builder() -> ContainerFileCitationBodyBuilder<((), (), (), (), ())>
Create a builder for building ContainerFileCitationBody
.
On the builder, call .container_id(...)
, .file_id(...)
, .start_index(...)
, .end_index(...)
, .filename(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ContainerFileCitationBody
.
Trait Implementations§
Source§impl Clone for ContainerFileCitationBody
impl Clone for ContainerFileCitationBody
Source§fn clone(&self) -> ContainerFileCitationBody
fn clone(&self) -> ContainerFileCitationBody
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContainerFileCitationBody
impl Debug for ContainerFileCitationBody
Source§impl<'de> Deserialize<'de> for ContainerFileCitationBody
impl<'de> Deserialize<'de> for ContainerFileCitationBody
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 ContainerFileCitationBody
impl PartialEq for ContainerFileCitationBody
Source§fn eq(&self, other: &ContainerFileCitationBody) -> bool
fn eq(&self, other: &ContainerFileCitationBody) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ContainerFileCitationBody
Auto Trait Implementations§
impl Freeze for ContainerFileCitationBody
impl RefUnwindSafe for ContainerFileCitationBody
impl Send for ContainerFileCitationBody
impl Sync for ContainerFileCitationBody
impl Unpin for ContainerFileCitationBody
impl UnwindSafe for ContainerFileCitationBody
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