The namegen5 website.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
533 B

use std::collections::HashMap;
use namegen::Name;
#[derive(Serialize)]
#[serde(rename_all = "camelCase")]
pub struct Output {
pub name: String,
pub metadata: HashMap<String, String>,
pub data: Name,
pub examples: HashMap<String, Vec<String>>,
}
#[derive(Serialize)]
#[serde(rename_all = "camelCase")]
pub struct Collection {
pub items: Vec<CollectionItem>,
}
#[derive(Serialize)]
#[serde(rename_all = "camelCase")]
pub struct CollectionItem {
pub name: String,
pub metadata: HashMap<String, String>,
}