Skip to content

Instantly share code, notes, and snippets.

@shaver
Created April 8, 2019 14:14
Show Gist options
  • Save shaver/bf6d3dd15acfd5a58d77ae7b23c88cee to your computer and use it in GitHub Desktop.
Save shaver/bf6d3dd15acfd5a58d77ae7b23c88cee to your computer and use it in GitHub Desktop.
pub fn load_jobs(_file: &str) -> Vec<Job> {
extern crate csv;
let jobs = vec![Job {
_name: "Dude".to_string(),
_skill_ratings: (
SkillRating {
_name: String::from("Drinking"),
_ratings: vec![0; 32]
},
SkillRating {
_name: String::from("Eating"),
_ratings: vec![0; 32]
},
SkillRating {
_name: String::from("Sleeping"),
_ratings: vec![0; 32]
}
)
}];
jobs
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment