1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#![allow(clippy::needless_return, clippy::redundant_field_names)]
#![deny(clippy::implicit_return)]
pub mod environment;
pub mod embed;
pub mod databases;
pub mod regexes;
pub trait Key {
fn get_key_info(&self) -> &KeyInfo;
fn get_key_function(&self) -> fn(parameter: &[String], environment: &mut environment::Environment) -> Result<String, String>;
}
#[derive(Clone, Debug)]
pub struct KeyInfo {
pub parameters_required: Vec<usize>,
pub name: String,
}