pub struct File {
pub name: String,
pub content: String,
pub mime_type: String,
}Expand description
A structure that contains a file name and its content
Fields§
§name: StringThe name of the file with file extension(e.g., ’ file.csv’)
content: StringThe base64 - encoded bytes of the file content.
mime_type: StringThe mime type of the file (e.g., ’ image / png’)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
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