pub struct ContainerFileCitationBody {
pub container_id: String,
pub file_id: String,
pub start_index: u64,
pub end_index: u64,
}
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: u64
The index of the first character of the container file citation in the message.
end_index: u64
The index of the last character of the container file citation in the message.
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(...)
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§fn clone_from(&mut self, source: &Self)
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
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