flare_rpc_core/app/
mod.rs1use std::collections::HashMap;
2use uuid::Uuid;
3
4mod app;
5mod tests;
6
7pub use app::{App, AppBuilder, DefaultApp};
8
9#[derive(Debug, Clone)]
11pub struct AppConfig {
12 pub id: String,
14 pub name: String,
16 pub version: String,
18 pub metadata: HashMap<String, String>,
20 pub tags: Vec<String>,
22 pub weight: u32,
24}
25
26impl Default for AppConfig {
27 fn default() -> Self {
28 Self {
29 id: Uuid::new_v4().to_string(),
30 name: String::new(),
31 version: "1.0.0".to_string(),
32 metadata: HashMap::new(),
33 tags: Vec::new(),
34 weight: 1,
35 }
36 }
37}