Expand description
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§
- error
- template_
struct - templates
- All of the templates built into this lib are meant to resemble a litle bit of rust code.
Functions§
- generate_
name - Given a username and
NameTemplate
output the rendered name - generate_
random_ name - Generate a random name that fits within a specified character limit
- get_
all_ template_ examples - Returns a Vec
of all template examples - get_
all_ template_ names - Returns a Vec
of all template names - get_
all_ templates - Returns a Vec of all built in templates
- get_
template_ by_ name - Returns an option with a template with the given name
- get_
templates_ of_ type - Returns a Vec of templates matching specified type