Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. use serde_derive::{Serialize, Deserialize}; // 1.0.94
  2.  
  3. #[derive(Deserialize, Serialize, Debug)]
  4. pub struct CourseResult {
  5. pub key: String,
  6. }
  7.  
  8.  
  9. pub fn mapper(src: &Iterator<Item = &CourseResult>) {
  10.  
  11. src.map(|c| {
  12. println!("OK");
  13. });
  14.  
  15. }
  16.  
  17. fn main() {
  18. println!("hello");
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement