pub struct ParseFile {
pub name: String,
pub url: Option<String>,
pub mime_type: String,
pub data: Vec<u8>,
}
Expand description
Represents a file to be uploaded to Parse Server or a file that has already been uploaded.
Fields§
§name: String
The name of the file. This could be the original filename or the name assigned by Parse Server upon upload.
url: Option<String>
The URL of the file after it has been uploaded to Parse Server.
This will be None
for a file that hasn’t been uploaded yet.
mime_type: String
The MIME type of the file (e.g., “image/jpeg”, “text/plain”).
data: Vec<u8>
The raw byte data of the file.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParseFile
impl RefUnwindSafe for ParseFile
impl Send for ParseFile
impl Sync for ParseFile
impl Unpin for ParseFile
impl UnwindSafe for ParseFile
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