pub struct profile;
Expand description
Handles the profile endpoint, and returns an HTML response.
§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 profile page as its body.
Trait Implementations§
Source§impl HttpServiceFactory for profile
impl HttpServiceFactory for profile
fn register(self, __config: &mut AppService)
Auto Trait Implementations§
impl Freeze for profile
impl RefUnwindSafe for profile
impl Send for profile
impl Sync for profile
impl Unpin for profile
impl UnwindSafe for profile
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