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

4 years ago
  1. use std::collections::HashMap;
  2. use namegen::Name;
  3. #[derive(Serialize)]
  4. #[serde(rename_all = "camelCase")]
  5. pub struct Output {
  6. pub name: String,
  7. pub metadata: HashMap<String, String>,
  8. pub data: Name,
  9. pub examples: HashMap<String, Vec<String>>,
  10. }
  11. #[derive(Serialize)]
  12. #[serde(rename_all = "camelCase")]
  13. pub struct Collection {
  14. pub items: Vec<CollectionItem>,
  15. }
  16. #[derive(Serialize)]
  17. #[serde(rename_all = "camelCase")]
  18. pub struct CollectionItem {
  19. pub name: String,
  20. pub metadata: HashMap<String, String>,
  21. }