Expand description

“ay that’s where the ’stralian accent comes through”

Yes I am australian :)

This is a super simple lib I made for practice.

The usernames generated are based on the names we all have in the Serenity/Poise discord and the rust community discord

Basic use:

use rust_nickname_generater::generate_random_name;

// Generate a name that will fit in Discord
println!("{}", generate_random_name("mojo".to_string(), 32).unwrap());

Modules

All of the templates built into this lib are meant to resemble a litle bit of rust code.

Functions

Given a username and NameTemplate output the rendered name

Generate a random name that fits within a specified character limit

Returns a Vec of all template examples

Returns a Vec of all template names

Returns a Vec of all built in templates

Returns an option with a template with the given name

Returns a Vec of templates matching specified type