1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use super::doc::*; use uuid::Uuid; #[derive(Debug, PartialEq, Eq)] pub enum Autosave { ManualOnly, OnCommand } #[derive(Debug)] pub struct State { pub doc: Doc, pub wt: Uuid, pub parents: Vec<Uuid>, pub path: String, pub autosave: Autosave }