SettingsEditor
struct · ferroui-protranslate-studio · v0.5.0
struct SettingsEditor
Editing settings is transactional: cancelling discards the draft, and a failed save keeps it available without changing the original configuration.
Members
new
fn new(settings: StudioSettings) -> Self
draft
fn draft(self: &Self) -> &StudioSettings
draft_mut
fn draft_mut(self: &mut Self) -> &mut StudioSettings
cancel
fn cancel(self: Self) -> StudioSettings
save
fn save(self: &mut Self, service: &SettingsService, credentials: CredentialPersistence) -> Result<StudioSettings, 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.