1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use std::collections::HashMap; #[derive(Debug)] pub struct Req { pub uri: &'static str, pub pram: HashMap<String, String>, } impl Req { pub fn new() -> Req { Req { uri: "", pram: HashMap::new(), } } }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use std::collections::HashMap; #[derive(Debug)] pub struct Req { pub uri: &'static str, pub pram: HashMap<String, String>, } impl Req { pub fn new() -> Req { Req { uri: "", pram: HashMap::new(), } } }