pub struct upload_files;
Expand description
Handles requests for the /upload
endpoint, serving the file upload template.
§Arguments
request
- A reference to the Actix webHttpRequest
object.fernet
- Fernet object to encrypt the auth payload that will be set assession_token
cookie.session
- Session struct that holds thesession_mapping
andsession_tracker
to handle sessions.metadata
- Struct containing metadata of the application.config
- Configuration data for the application.template
- Configuration container for the loaded templates.
§Returns
Returns an HttpResponse
with the upload page as its body.
Trait Implementations§
Source§impl HttpServiceFactory for upload_files
impl HttpServiceFactory for upload_files
fn register(self, __config: &mut AppService)
Auto Trait Implementations§
impl Freeze for upload_files
impl RefUnwindSafe for upload_files
impl Send for upload_files
impl Sync for upload_files
impl Unpin for upload_files
impl UnwindSafe for upload_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