mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
29 lines
453 B
Rust
29 lines
453 B
Rust
mod request;
|
|
mod tab;
|
|
|
|
use request::Request;
|
|
use tab::Tab;
|
|
|
|
/// Reduce disk usage by cache Bookmarks index in memory
|
|
pub struct Memory {
|
|
pub request: Request,
|
|
pub tab: Tab,
|
|
}
|
|
|
|
impl Default for Memory {
|
|
fn default() -> Self {
|
|
Self::new()
|
|
}
|
|
}
|
|
|
|
impl Memory {
|
|
// Constructors
|
|
|
|
/// Create new `Self`
|
|
pub fn new() -> Self {
|
|
Self {
|
|
request: Request::new(),
|
|
tab: Tab::new(),
|
|
}
|
|
}
|
|
}
|