Struct rustream::routes::upload::save_files
source · pub struct save_files;Expand description
Saves files locally by breaking them into chunks.
§Arguments
request- A reference to the Actix webHttpRequestobject.payload- Mutable multipart struct that is sent from the UI asFormData.fernet- Fernet object to encrypt the auth payload that will be set assession_tokencookie.session- Session struct that holds thesession_mappingandsession_trackerto handle sessions.config- Configuration data for the application.
§References
§Returns
200- Plain HTTPResponse indicating that the file was uploaded.422- HTTPResponse with JSON object indicating that the payload was incomplete.400- HTTPResponse with JSON object indicating that the payload was invalid.
Trait Implementations§
source§impl HttpServiceFactory for save_files
impl HttpServiceFactory for save_files
fn register(self, __config: &mut AppService)
Auto Trait Implementations§
impl Freeze for save_files
impl RefUnwindSafe for save_files
impl Send for save_files
impl Sync for save_files
impl Unpin for save_files
impl UnwindSafe for save_files
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