Struct seaplane_cli::ops::db::Db
source · pub struct Db {
pub state_version: StateVersion,
pub formations: Formations,
pub needs_persist: bool,
/* private fields */
}Expand description
The in memory “Databases”
Fields§
§state_version: StateVersion§formations: FormationsThe in memory Formations database
needs_persist: boolA hint that we should persist at some point. Not gospel
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Db
impl<'de> Deserialize<'de> for Db
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromDisk for Db
impl FromDisk for Db
source§fn set_loaded_from<P: AsRef<Path>>(&mut self, p: P)
fn set_loaded_from<P: AsRef<Path>>(&mut self, p: P)
Allows one to save or deserialize what path the item was loaded from
source§fn loaded_from(&self) -> Option<&Path>
fn loaded_from(&self) -> Option<&Path>
If saved, get the path the item was loaded from