Crate rust_nickname_generater

Source
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§

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