25 lines
365 B
Rust
25 lines
365 B
Rust
|
use std::{collections::HashMap, path::Path};
|
||
|
|
||
|
use crate::Message;
|
||
|
|
||
|
pub struct Bundle {
|
||
|
messages: HashMap<String, Message>
|
||
|
}
|
||
|
|
||
|
impl Bundle {
|
||
|
pub fn new() -> Self {
|
||
|
Self{ messages: HashMap::new() }
|
||
|
}
|
||
|
|
||
|
pub fn load_from_disk(path: &Path) -> Self {
|
||
|
Self {
|
||
|
messages: HashMap::new()
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
#[cfg(test)]
|
||
|
mod test {
|
||
|
}
|