mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-04-19 19:10:53 +00:00
18 lines
424 B
Rust
18 lines
424 B
Rust
/// API client information
|
|
///
|
|
/// @author Pierre HUBERT
|
|
#[derive(Debug)]
|
|
pub struct APIClient {
|
|
pub id: u64,
|
|
pub name: String,
|
|
pub domain: Option<String>,
|
|
pub comment: Option<String>,
|
|
pub default_expiration_time: u64,
|
|
pub firebase_service_account_file: Option<String>,
|
|
}
|
|
|
|
impl APIClient {
|
|
pub fn is_firebase_available(&self) -> bool {
|
|
self.firebase_service_account_file.is_some()
|
|
}
|
|
} |