1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
pub mod api; mod error; pub use error::Error; #[derive(Clone, Debug)] pub struct FireAuth { pub api_key: String, // web api key } impl FireAuth { /// A constructor for the FireAuth struct pub fn new(api_key: String) -> Self { Self { api_key } } }