pub struct home;Expand description
Handles the home endpoint, rendering the listing page for authenticated users.
§Arguments
config- Configuration data for the application.request- Actix HttpRequest containing information about the incoming request.
§Returns
200- Returns anHTTPResponsewith 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 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