SettingsService
struct · ferroui-protranslate-studio · v0.5.0
struct SettingsService
Members
new
fn new(storage: Rc<dyn StudioStorage>, path: impl Into<String>) -> Self
path
fn path(self: &Self) -> &str
load
fn load(self: &Self) -> Result<Option<StudioSettings>, StudioError>
load_or_default
fn load_or_default(self: &Self) -> SettingsLoad
Corrupt settings are preserved and surfaced alongside usable defaults.
save
fn save(self: &Self, settings: &StudioSettings) -> Result<(), StudioError>
save_with_credentials
fn save_with_credentials(self: &Self, settings: &StudioSettings, credentials: CredentialPersistence) -> Result<(), StudioError>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.