pub struct Settings {
pub conversion: ConversionConfig,
pub machine: MachineConfig,
pub postprocess: PostprocessConfig,
pub version: Version,
}
Expand description
A cross-platform type used to store all configuration types.
Fields§
§conversion: ConversionConfig
§machine: MachineConfig
§postprocess: PostprocessConfig
§version: Version
Implementations§
Source§impl Settings
impl Settings
Sourcepub fn try_upgrade(&mut self) -> Result<(), &'static str>
pub fn try_upgrade(&mut self) -> Result<(), &'static str>
Try to automatically upgrade the supported version.
This will return an error if:
- Settings version is
Version::Unknown
. - There are breaking changes requiring manual intervention. In which case this does a partial update to that point.
Trait Implementations§
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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