users_native

Function get_current_user

Source
pub fn get_current_user() -> User
Expand description

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();