Skip to main content

prepare

Function prepare 

Source
pub fn prepare(name: String, bytes: Vec<u8>) -> Result<Media, MediaError>
Expand description

The file called name that bytes are, ready to be sent: a JPEG, a PNG or a WebP as the picture and no more (see the module), and anything else as it is.