Function users_native::get_current_username
[−]
[src]
pub fn get_current_username() -> String
Gets the current username
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_username();