Skip to content

Commit

Permalink
feat: create parameters from (&str, &str)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodie committed Sep 8, 2024
1 parent be22679 commit c2df632
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ impl Parameter {
}
}

impl From<(&str, &str)> for Parameter {
fn from((key, val): (&str, &str)) -> Self {
Parameter::new(key, val)
}
}

//type EntryParameters = Vec<Parameter>;
pub type EntryParameters = HashMap<String, Parameter>;

Expand Down

0 comments on commit c2df632

Please sign in to comment.