pub struct ContentPartFileFile {
pub data_base64: String,
pub filename: Option<String>,
pub mime_type: String,
pub size_bytes: Option<i64>,
}Expand description
ContentPartFileFile
JSON schema
{
"type": "object",
"required": [
"data_base64",
"mime_type"
],
"properties": {
"data_base64": {
"description": "Base64-encoded file content",
"type": "string"
},
"filename": {
"type": "string"
},
"mime_type": {
"description": "IANA media type (e.g., application/pdf, image/png)",
"type": "string"
},
"size_bytes": {
"type": "integer",
"format": "int64"
}
},
"additionalProperties": false
}Fields§
§data_base64: StringBase64-encoded file content
filename: Option<String>§mime_type: StringIANA media type (e.g., application/pdf, image/png)
size_bytes: Option<i64>Trait Implementations§
Source§impl Clone for ContentPartFileFile
impl Clone for ContentPartFileFile
Source§fn clone(&self) -> ContentPartFileFile
fn clone(&self) -> ContentPartFileFile
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 ContentPartFileFile
impl Debug for ContentPartFileFile
Source§impl<'de> Deserialize<'de> for ContentPartFileFile
impl<'de> Deserialize<'de> for ContentPartFileFile
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<&ContentPartFileFile> for ContentPartFileFile
impl From<&ContentPartFileFile> for ContentPartFileFile
Source§fn from(value: &ContentPartFileFile) -> Self
fn from(value: &ContentPartFileFile) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ContentPartFileFile
impl PartialEq for ContentPartFileFile
Source§impl Serialize for ContentPartFileFile
impl Serialize for ContentPartFileFile
impl StructuralPartialEq for ContentPartFileFile
Auto Trait Implementations§
impl Freeze for ContentPartFileFile
impl RefUnwindSafe for ContentPartFileFile
impl Send for ContentPartFileFile
impl Sync for ContentPartFileFile
impl Unpin for ContentPartFileFile
impl UnwindSafe for ContentPartFileFile
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