pub struct InputFileContent {
pub file_id: Option<String>,
pub filename: Option<String>,
pub file_data: Option<String>,
}
Expand description
A file input to the model.
Fields§
§file_id: Option<String>
The ID of the file to be sent to the model.
filename: Option<String>
The name of the file to be sent to the model.
file_data: Option<String>
The content of the file to be sent to the model.
Implementations§
Source§impl InputFileContent
impl InputFileContent
Sourcepub fn builder() -> InputFileContentBuilder<((), (), ())>
pub fn builder() -> InputFileContentBuilder<((), (), ())>
Create a builder for building InputFileContent
.
On the builder, call .file_id(...)
(optional), .filename(...)
(optional), .file_data(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of InputFileContent
.
Trait Implementations§
Source§impl Clone for InputFileContent
impl Clone for InputFileContent
Source§fn clone(&self) -> InputFileContent
fn clone(&self) -> InputFileContent
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 InputFileContent
impl Debug for InputFileContent
Source§impl Default for InputFileContent
impl Default for InputFileContent
Source§fn default() -> InputFileContent
fn default() -> InputFileContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputFileContent
impl<'de> Deserialize<'de> for InputFileContent
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 InputFileContent
impl PartialEq for InputFileContent
Source§impl Serialize for InputFileContent
impl Serialize for InputFileContent
impl StructuralPartialEq for InputFileContent
Auto Trait Implementations§
impl Freeze for InputFileContent
impl RefUnwindSafe for InputFileContent
impl Send for InputFileContent
impl Sync for InputFileContent
impl Unpin for InputFileContent
impl UnwindSafe for InputFileContent
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