pub struct home;
Expand description
Handles the home endpoint, rendering the listing page for authenticated users.
§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
200
- Returns anHTTPResponse
with the home/listing page if session token is valid.401
- HttpResponse with an error message for failed authentication.
Trait Implementations§
Source§impl HttpServiceFactory for home
impl HttpServiceFactory for home
fn register(self, __config: &mut AppService)
Auto Trait Implementations§
impl Freeze for home
impl RefUnwindSafe for home
impl Send for home
impl Sync for home
impl Unpin for home
impl UnwindSafe for home
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