1 2 3 4 5 6 7 8 9 10 11 12 13 14
#[derive(Clone, Debug)] pub struct ApiKey { pub name: String, pub key: String, } impl ApiKey { pub fn new(name: &str, key: &str) -> Self { Self { name: name.to_string(), key: key.to_string() } } }