/// Function to create a new User.
/// Returns an instance of User Structure.
Function to create a new User.
Returns an instance of User Structure.
Function to create a new User . Returns an instance of User Structure .
fn create_user(pseudo: String, pwd: String) -> User {
        User {
            pseudo,
            pwd: encode_pwd(pwd),
            token: String::new()
        }
    }
fn create_user ( pseudo : String , pwd : String ) -> User { User { pseudo , pwd : encode_pwd ( pwd ) , token : String :: new ( ) } }
Function to create a new User.
Function to create a new User .
pseudo
String
pwd
String