pub struct TuiPrefsMigration {
pub source: PathBuf,
pub backup: Option<PathBuf>,
pub folded: Vec<(String, String)>,
pub kept: Vec<(String, String, String)>,
pub quarantined: Vec<String>,
}Expand description
What the one-time tui.toml fold did, so a session can say it out loud.
tui.toml used to be a second persisted store for theme, font_size,
and keybind overrides. Startup never read it, so a theme saved there could
disagree with settings.toml forever and nothing told the user which store
won. The file is now folded into settings.toml at load: a value
settings.toml does not already own explicitly is adopted, a value it does
own is reported as kept, and a key with no Settings field is quarantined
by name. The original bytes are moved to a dated backup — never deleted,
never silently dropped.
Fields§
§source: PathBufThe tui.toml that was folded.
backup: Option<PathBuf>Where its original bytes now live.
folded: Vec<(String, String)>(settings key, adopted value) folded into settings.toml.
kept: Vec<(String, String, String)>(settings key, tui.toml value, settings.toml value) — settings.toml
already owned the key explicitly, so it won.
quarantined: Vec<String>tui.toml keys with no home in Settings. Listed, never dropped.
Implementations§
Trait Implementations§
Source§impl Clone for TuiPrefsMigration
impl Clone for TuiPrefsMigration
Source§impl Debug for TuiPrefsMigration
impl Debug for TuiPrefsMigration
Source§impl Default for TuiPrefsMigration
impl Default for TuiPrefsMigration
impl Eq for TuiPrefsMigration
Source§impl PartialEq for TuiPrefsMigration
impl PartialEq for TuiPrefsMigration
impl StructuralPartialEq for TuiPrefsMigration
Auto Trait Implementations§
impl Forget for TuiPrefsMigration
impl Freeze for TuiPrefsMigration
impl Move for TuiPrefsMigration
impl RefUnwindSafe for TuiPrefsMigration
impl Send for TuiPrefsMigration
impl Sync for TuiPrefsMigration
impl Unpin for TuiPrefsMigration
impl UnsafeUnpin for TuiPrefsMigration
impl UnwindSafe for TuiPrefsMigration
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.