pub struct ChatCompletionRequestMessageContentPartFileFile {
pub filename: Option<String>,
pub file_data: Option<String>,
pub file_id: Option<String>,
}
Fields§
§filename: Option<String>
The name of the file, used when passing the file to the model as a string.
file_data: Option<String>
The base64 encoded file data, used when passing the file to the model as a string.
file_id: Option<String>
The ID of an uploaded file to use as input.
Implementations§
Source§impl ChatCompletionRequestMessageContentPartFileFile
impl ChatCompletionRequestMessageContentPartFileFile
Sourcepub fn builder() -> ChatCompletionRequestMessageContentPartFileFileBuilder<((), (), ())>
pub fn builder() -> ChatCompletionRequestMessageContentPartFileFileBuilder<((), (), ())>
Create a builder for building ChatCompletionRequestMessageContentPartFileFile
.
On the builder, call .filename(...)
(optional), .file_data(...)
(optional), .file_id(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ChatCompletionRequestMessageContentPartFileFile
.
Trait Implementations§
Source§impl Clone for ChatCompletionRequestMessageContentPartFileFile
impl Clone for ChatCompletionRequestMessageContentPartFileFile
Source§fn clone(&self) -> ChatCompletionRequestMessageContentPartFileFile
fn clone(&self) -> ChatCompletionRequestMessageContentPartFileFile
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 Default for ChatCompletionRequestMessageContentPartFileFile
impl Default for ChatCompletionRequestMessageContentPartFileFile
Source§fn default() -> ChatCompletionRequestMessageContentPartFileFile
fn default() -> ChatCompletionRequestMessageContentPartFileFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatCompletionRequestMessageContentPartFileFile
impl<'de> Deserialize<'de> for ChatCompletionRequestMessageContentPartFileFile
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 ChatCompletionRequestMessageContentPartFileFile
impl PartialEq for ChatCompletionRequestMessageContentPartFileFile
Source§fn eq(&self, other: &ChatCompletionRequestMessageContentPartFileFile) -> bool
fn eq(&self, other: &ChatCompletionRequestMessageContentPartFileFile) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ChatCompletionRequestMessageContentPartFileFile
Auto Trait Implementations§
impl Freeze for ChatCompletionRequestMessageContentPartFileFile
impl RefUnwindSafe for ChatCompletionRequestMessageContentPartFileFile
impl Send for ChatCompletionRequestMessageContentPartFileFile
impl Sync for ChatCompletionRequestMessageContentPartFileFile
impl Unpin for ChatCompletionRequestMessageContentPartFileFile
impl UnwindSafe for ChatCompletionRequestMessageContentPartFileFile
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