woz 1.2.3

Woz is a WebAssembly progressive web app (PWA) toolchain for deploying performant mobile apps distributed for free with a hyperlink.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Represents a file to be uploaded. File contents are held in memory
/// as a vector of bytes. This may not be desireable for very large
/// files...
pub struct FileUpload {
    pub filename: String,
    pub mimetype: String,
    pub bytes: Vec<u8>
}

impl FileUpload {
    pub fn new(filename: String, mimetype: String, bytes: Vec<u8>) -> Self {
        Self {filename, mimetype, bytes}
    }
}