Function users_native::get_current_user
[−]
[src]
pub fn get_current_user() -> User
Gets the current user
Note: This uses the "USERNAME" environment variable for obtaining information on the current user
Example
use users_native as users; let user = users::get_current_user();