pub struct FileContentPart {
pub file_id: FileId,
pub filename: Option<String>,
}Expand description
File content part (reference to an uploaded file, e.g. a PDF)
This is used for files uploaded via the /files API. The file data is stored separately and referenced by ID.
Fields§
§file_id: FileIdID of the uploaded file (format: file_{32-hex})
filename: Option<String>Original filename (for display and provider file parts)
Implementations§
Trait Implementations§
Source§impl Clone for FileContentPart
impl Clone for FileContentPart
Source§fn clone(&self) -> FileContentPart
fn clone(&self) -> FileContentPart
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 FileContentPart
impl Debug for FileContentPart
Source§impl<'de> Deserialize<'de> for FileContentPart
impl<'de> Deserialize<'de> for FileContentPart
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 FileContentPart
impl PartialEq for FileContentPart
Source§impl Serialize for FileContentPart
impl Serialize for FileContentPart
impl StructuralPartialEq for FileContentPart
Auto Trait Implementations§
impl Freeze for FileContentPart
impl RefUnwindSafe for FileContentPart
impl Send for FileContentPart
impl Sync for FileContentPart
impl Unpin for FileContentPart
impl UnsafeUnpin for FileContentPart
impl UnwindSafe for FileContentPart
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