Skip to main content

Modde

Struct Modde 

Source
pub struct Modde {
Show 62 fields pub active_view: View, pub active_profile: Option<String>, pub profiles: Vec<ProfileSummary>, pub status_message: String, pub button_hover_toast: ButtonHoverToastState, pub pending_tools_load_status_message: Option<String>, pub settings: AppSettings, pub collection_search: String, pub collections: Vec<CollectionManifest>, pub fomod_installer: Option<FOMODWizardState>, pub fomod_visible_step_indices: SmallVec<[usize; 16]>, pub fomod_wizard_pos: usize, pub fomod_source_dir: Option<PathBuf>, pub fomod_dest_dir: Option<PathBuf>, pub fomod_conflicts: SmallVec<[String; 4]>, pub fomod_can_undo: bool, pub fomod_selections: HashMap<(usize, usize), Vec<usize>>, pub selected_mod_index: Option<usize>, pub selected_mod_details: Option<ModDetailsState>, pub mod_filter: String, pub mod_id_filter_keys: Vec<String>, pub theme_name: String, pub wabbajack_manifest: Option<WabbajackManifest>, pub active_downloads: Vec<CollectionDownload>, pub download_queue: DownloadQueue, pub download_lookup: HashMap<String, usize>, pub loaded_profile: Option<Profile>, pub save_snapshots: Vec<SaveSnapshot>, pub current_fingerprint: Option<SaveFingerprint>, pub selected_save_details: Option<SaveDetailsState>, pub experiment_depth: usize, pub nexus_status: Option<NexusAuthStatus>, pub nexus_api_key_draft: String, pub nexus_api_key_visible: bool, pub nexus_api_key_source: Option<ApiKeySource>, pub nexus_config_key_exists: bool, pub new_profile_name: String, pub new_profile_dialog_open: bool, pub game_path_dialog_open: bool, pub add_custom_game_dialog_open: bool, pub manage_custom_games_dialog_open: bool, pub pending_game_path_game_id: Option<String>, pub previous_game_before_path_dialog: Option<String>, pub game_path_dialog_error: Option<String>, pub add_custom_game: AddCustomGameState, pub available_games: SmallVec<[(String, String); 8]>, pub detected_games: HashSet<String>, pub selected_game: Option<String>, pub stock_snapshot_exists: bool, pub window_id: Id, pub collapsed_categories: HashSet<Option<i64>>, pub mod_categories: Vec<(Option<i64>, String)>, pub data_tab_state: DataTabState, pub data_tab_conflicts: Vec<(String, Vec<String>)>, pub browse_nexus: NexusBrowseState, pub diagnostics_state: DiagnosticsState, pub tool_state: ToolState, pub filter_mode: FilterMode, pub filter_criteria: Vec<FilterCriterion>, pub compact_mod_list: bool, pub collapsed_sidebar_groups: HashSet<SidebarGroup>, pub update_available: Option<UpdateInfo>,
}
Expand description

Top-level application state.

Fields§

§active_view: View§active_profile: Option<String>§profiles: Vec<ProfileSummary>§status_message: String§button_hover_toast: ButtonHoverToastState§pending_tools_load_status_message: Option<String>§settings: AppSettings§collection_search: String§collections: Vec<CollectionManifest>§fomod_installer: Option<FOMODWizardState>§fomod_visible_step_indices: SmallVec<[usize; 16]>§fomod_wizard_pos: usize§fomod_source_dir: Option<PathBuf>§fomod_dest_dir: Option<PathBuf>§fomod_conflicts: SmallVec<[String; 4]>§fomod_can_undo: bool§fomod_selections: HashMap<(usize, usize), Vec<usize>>§selected_mod_index: Option<usize>§selected_mod_details: Option<ModDetailsState>

Loaded Nexus metadata for the currently selected mod — populates the detail panel at the bottom of the left nav sidebar. None means no Nexus-tracked mod is selected (either nothing is selected or the selected mod has no nexus_mod_id).

§mod_filter: String§mod_id_filter_keys: Vec<String>§theme_name: String§wabbajack_manifest: Option<WabbajackManifest>§active_downloads: Vec<CollectionDownload>§download_queue: DownloadQueue§download_lookup: HashMap<String, usize>§loaded_profile: Option<Profile>§save_snapshots: Vec<SaveSnapshot>§current_fingerprint: Option<SaveFingerprint>§selected_save_details: Option<SaveDetailsState>§experiment_depth: usize§nexus_status: Option<NexusAuthStatus>§nexus_api_key_draft: String§nexus_api_key_visible: bool§nexus_api_key_source: Option<ApiKeySource>§nexus_config_key_exists: bool§new_profile_name: String§new_profile_dialog_open: bool§game_path_dialog_open: bool§add_custom_game_dialog_open: bool§manage_custom_games_dialog_open: bool§pending_game_path_game_id: Option<String>§previous_game_before_path_dialog: Option<String>§game_path_dialog_error: Option<String>§add_custom_game: AddCustomGameState§available_games: SmallVec<[(String, String); 8]>§detected_games: HashSet<String>§selected_game: Option<String>§stock_snapshot_exists: bool§window_id: Id§collapsed_categories: HashSet<Option<i64>>

Which category groups are collapsed in the mod list view. None key = the “Uncategorized” group.

§mod_categories: Vec<(Option<i64>, String)>

Category id-to-name mapping for the mod list view.

§data_tab_state: DataTabState§data_tab_conflicts: Vec<(String, Vec<String>)>§browse_nexus: NexusBrowseState

State for the Browse Nexus view (Phase 6 of the installer pipeline).

§diagnostics_state: DiagnosticsState§tool_state: ToolState§filter_mode: FilterMode

Filter mode (AND/OR) for the mod list filter toolbar.

§filter_criteria: Vec<FilterCriterion>

Active tri-state filter criteria for the mod list.

§compact_mod_list: bool

Whether the mod list uses compact row rendering.

§collapsed_sidebar_groups: HashSet<SidebarGroup>

Sidebar groups the user has collapsed for this session.

§update_available: Option<UpdateInfo>

Implementations§

Source§

impl Modde

Source

pub fn settings_state(&self) -> SettingsState

Source

pub fn fomod_is_last_step(&self) -> bool

Source

pub fn reset_fomod(&mut self)

Source

pub fn refresh_fomod_visible_steps(&mut self)

Source

pub fn current_game_nexus_domain(&self) -> Option<String>

Return the currently-selected game’s Nexus domain, if the game plugin defines one. Used by the Browse Nexus view to issue GraphQL queries scoped to the right game.

Source

pub fn spawn_browse_load( &mut self, tab: BrowseTab, game_domain: String, search_query: String, ) -> Task<Message>

Kick off an async feed load for the Browse Nexus view. Picks the right GraphQL query based on the tab.

Auto Trait Implementations§

§

impl !Freeze for Modde

§

impl RefUnwindSafe for Modde

§

impl Send for Modde

§

impl Sync for Modde

§

impl Unpin for Modde

§

impl UnsafeUnpin for Modde

§

impl UnwindSafe for Modde

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert 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>

Convert 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)

Convert &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)

Convert &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> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &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)

Converts &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> DowncastSend for T
where T: Any + Send,

Source§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_sync(self: Box<T>) -> Box<dyn Any + Send + Sync>

Converts Box<Trait> (where Trait: DowncastSync) to Box<dyn Any + Send + Sync>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Converts Arc<Trait> (where Trait: DowncastSync) to Arc<Any>, which can then be downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<State, Message> IntoBoot<State, Message> for State

Source§

fn into_boot(self) -> (State, Task<Message>)

Turns some type into the initial state of some Application.
Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> Fruit for T
where T: Send + Downcast,

Source§

impl<T> MaybeClone for T

Source§

impl<T> MaybeDebug for T

Source§

impl<T> MaybeSend for T
where T: Send,

Source§

impl<T> MaybeSync for T
where T: Sync,

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,