pub struct SettingsFile {
pub version: u32,
pub discourse_version: Option<String>,
pub pulled_at: Option<String>,
pub settings: Vec<SettingsEntry>,
}Expand description
On-disk settings snapshot file (schema version 1).
Spec: spec/setting-sync.md. The file is self-documenting: it carries
each setting’s default, type, category, and description so that a human
(or LLM) reading the file can understand each entry without consulting
the API. On push, only name and value are honoured.
Fields§
§version: u32§discourse_version: Option<String>§pulled_at: Option<String>§settings: Vec<SettingsEntry>Trait Implementations§
Source§impl Clone for SettingsFile
impl Clone for SettingsFile
Source§fn clone(&self) -> SettingsFile
fn clone(&self) -> SettingsFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SettingsFile
impl Debug for SettingsFile
Source§impl<'de> Deserialize<'de> for SettingsFile
impl<'de> Deserialize<'de> for SettingsFile
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
Auto Trait Implementations§
impl Freeze for SettingsFile
impl RefUnwindSafe for SettingsFile
impl Send for SettingsFile
impl Sync for SettingsFile
impl Unpin for SettingsFile
impl UnsafeUnpin for SettingsFile
impl UnwindSafe for SettingsFile
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