Advertisement
Guest User

Untitled

a guest
Jul 9th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.36 KB | None | 0 0
  1. pub struct RequiredDataFieldOptions {
  2.     pub key: String,
  3.     pub value: String,
  4. }
  5.  
  6. enum RequiredDataType {
  7.     string,
  8.     enum,
  9.     number
  10. }
  11.  
  12. pub struct RequiredDataField {
  13.     pub type: RequiredDataType,
  14.     pub label: String,
  15.     pub options: Option<Vec<RequiredDataFieldOptions>>
  16. }
  17.  
  18. pub type RequiredData = HashMap<String, RequiredDataField>;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement