pub struct ContentPartFile {
pub file_data: Option<String>,
pub file_id: Option<String>,
pub filename: Option<String>,
}Expand description
A file input for a content part. At least one of file_data and
file_id should be provided.
Fields§
§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.
filename: Option<String>The name of the file, used when passing the file to the model as a string.
Trait Implementations§
Source§impl Clone for ContentPartFile
impl Clone for ContentPartFile
Source§fn clone(&self) -> ContentPartFile
fn clone(&self) -> ContentPartFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContentPartFile
impl Debug for ContentPartFile
Source§impl Default for ContentPartFile
impl Default for ContentPartFile
Source§fn default() -> ContentPartFile
fn default() -> ContentPartFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContentPartFile
impl<'de> Deserialize<'de> for ContentPartFile
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
Auto Trait Implementations§
impl Freeze for ContentPartFile
impl RefUnwindSafe for ContentPartFile
impl Send for ContentPartFile
impl Sync for ContentPartFile
impl Unpin for ContentPartFile
impl UnsafeUnpin for ContentPartFile
impl UnwindSafe for ContentPartFile
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