wikidot_path/schema.rs
1/*
2 * schema.rs
3 *
4 * wikidot-path - Library to parse Wikidot-like paths.
5 * Copyright (c) 2019-2023 Emmie Maeda
6 *
7 * wikidot-normalize is available free of charge under the terms of the MIT
8 * License. You are free to redistribute and/or modify it under those
9 * terms. It is distributed in the hopes that it will be useful, but
10 * WITHOUT ANY WARRANTY. See the LICENSE file for more details.
11 *
12 */
13
14/// Helper structure to assist with argument parsing.
15#[derive(Debug, Copy, Clone)]
16pub struct ArgumentSchema<'a> {
17 /// Describes which keys are valid.
18 pub valid_keys: &'a [&'a str],
19
20 /// List of keys which do not require a value.
21 pub solo_keys: &'a [&'a str],
22}