Struct kvarn_auth::integrations::GetFsUser
source · pub struct GetFsUser<T, U> {
pub login: Login,
/* private fields */
}
Available on crate feature
integration-fs
only.Expand description
Gets the user from a request.
Fields§
§login: Login
Implementations§
source§impl<T: DeserializeOwned + Serialize + Send + Sync, U: DeserializeOwned + Serialize + Send + Sync> GetFsUser<T, U>
impl<T: DeserializeOwned + Serialize + Send + Sync, U: DeserializeOwned + Serialize + Send + Sync> GetFsUser<T, U>
sourcepub fn get_user(
&self,
request: &FatRequest,
addr: SocketAddr
) -> UserValidation<Ref<'_, CompactString, User<T>>>
pub fn get_user( &self, request: &FatRequest, addr: SocketAddr ) -> UserValidation<Ref<'_, CompactString, User<T>>>
Get the user and it’s data.
sourcepub fn get_user_mut(
&self,
request: &FatRequest,
addr: SocketAddr
) -> UserValidation<RefMut<'_, CompactString, User<T>>>
pub fn get_user_mut( &self, request: &FatRequest, addr: SocketAddr ) -> UserValidation<RefMut<'_, CompactString, User<T>>>
Get the user and it’s data as a mutable reference.