pub struct InputFileContent {
pub file_data: Option<String>,
pub file_id: Option<String>,
pub file_url: Option<String>,
pub filename: Option<String>,
pub detail: Option<FileInputDetail>,
}Available on crate feature
response-types only.Fields§
§file_data: Option<String>The content of the file to be sent to the model.
file_id: Option<String>The ID of the file to be sent to the model.
file_url: Option<String>The URL of the file to be sent to the model.
filename: Option<String>The name of the file to be sent to the model.
detail: Option<FileInputDetail>The detail level of the file to be sent to the model. Use low for the default rendering
behavior, or high to render the file at higher quality. Defaults to low.
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 From<InputFileContent> for InputContent
impl From<InputFileContent> for InputContent
Source§fn from(content: InputFileContent) -> Self
fn from(content: InputFileContent) -> Self
Converts to this type from the input type.
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 UnsafeUnpin 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