(&self, name: &'static str)
| 30 | |
| 31 | impl Directive { |
| 32 | pub fn get_arg_value(&self, name: &'static str) -> Option<&Value> { |
| 33 | if let DirectiveParams::KeyValue(kv) = &self.params { |
| 34 | kv.get(name) |
| 35 | } else { |
| 36 | None |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | pub struct DirectiveParser<'a, 'b: 'a> { |