pub struct SettingsDocument {
pub version: String,
pub source: String,
pub fingerprint: String,
pub totals: SettingsTotals,
pub areas: Vec<SettingsArea>,
}Expand description
The whole effective config, pushed on attach and after every applied reload.
Fields§
§version: StringThe forge version that built it.
source: StringThe resolved forge.toml path.
fingerprint: StringThe fingerprint of the raw file text this document was built from. A save carries it, and a file that has moved since refuses the save.
totals: SettingsTotals§areas: Vec<SettingsArea>Implementations§
Source§impl SettingsDocument
impl SettingsDocument
Sourcepub fn with_totals(self) -> Self
pub fn with_totals(self) -> Self
A fresh total over the areas, so a builder cannot ship a count that disagrees with what it drew.
Trait Implementations§
Source§impl Clone for SettingsDocument
impl Clone for SettingsDocument
Source§impl Debug for SettingsDocument
impl Debug for SettingsDocument
Source§impl<'de> Deserialize<'de> for SettingsDocument
impl<'de> Deserialize<'de> for SettingsDocument
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 PartialEq for SettingsDocument
impl PartialEq for SettingsDocument
Source§impl Serialize for SettingsDocument
impl Serialize for SettingsDocument
impl StructuralPartialEq for SettingsDocument
Auto Trait Implementations§
impl Freeze for SettingsDocument
impl RefUnwindSafe for SettingsDocument
impl Send for SettingsDocument
impl Sync for SettingsDocument
impl Unpin for SettingsDocument
impl UnsafeUnpin for SettingsDocument
impl UnwindSafe for SettingsDocument
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more