pub struct Schema {
pub version: u32,
pub keys: &'static [Desc],
pub sections: &'static [(&'static str, &'static str)],
pub migrate: Option<fn(u32, &mut Ini)>,
}Expand description
the keys of a settings file, its format version, the page’s section titles and the migration of older files
Fields§
§version: u32§keys: &'static [Desc]§sections: &'static [(&'static str, &'static str)](section, title) for the settings page, in this order (sections without a title come after them, titled by their name)
migrate: Option<fn(u32, &mut Ini)>migrate(from, &mut ini): bring a file of version from up to version
Implementations§
Auto Trait Implementations§
impl Forget for Schema
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnsafeUnpin for Schema
impl UnwindSafe for Schema
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