Skip to main content

AppModel

Struct AppModel 

Source
pub struct AppModel {
Show 39 fields pub active_tab: Tab, pub tabs: Vec<Tab>, pub jobs: BTreeMap<u64, JobRecord>, pub history: Vec<JobRecord>, pub logs: Vec<LogLine>, pub focused_section: SectionFocus, pub palette_open: bool, pub palette_index: usize, pub palette_actions: Vec<ActionId>, pub show_build_onboarding: bool, pub mouse_mode_enabled: bool, pub log_text_mode: LogTextMode, pub main_scroll: usize, pub jobs_scroll: usize, pub logs_scroll: usize, pub anvil_logs_scroll: usize, pub logs_hscroll: usize, pub anvil_logs_hscroll: usize, pub notification: Option<String>, pub key_hints: BTreeMap<ActionId, String>, pub project_root: PathBuf, pub config_path: PathBuf, pub project_sol_files: Vec<String>, pub project_has_foundry_toml: bool, pub project_has_remappings: bool, pub project_indexed_at: DateTime<Local>, pub active_rpc_preset: Option<String>, pub active_rpc_chain: Option<String>, pub active_rpc_url: Option<String>, pub custom_templates: Vec<CustomTemplate>, pub custom_template_index: usize, pub custom_templates_global_path: PathBuf, pub custom_templates_project_path: PathBuf, pub custom_modal: Option<CustomCommandModal>, pub anvil_instances: Vec<AnvilInstance>, pub selected_anvil_index: usize, pub anvil_prompt: Option<AnvilLaunchPrompt>, pub should_quit: bool, pub launched_at: DateTime<Local>,
}

Fields§

§active_tab: Tab§tabs: Vec<Tab>§jobs: BTreeMap<u64, JobRecord>§history: Vec<JobRecord>§logs: Vec<LogLine>§focused_section: SectionFocus§palette_open: bool§palette_index: usize§palette_actions: Vec<ActionId>§show_build_onboarding: bool§mouse_mode_enabled: bool§log_text_mode: LogTextMode§main_scroll: usize§jobs_scroll: usize§logs_scroll: usize§anvil_logs_scroll: usize§logs_hscroll: usize§anvil_logs_hscroll: usize§notification: Option<String>§key_hints: BTreeMap<ActionId, String>§project_root: PathBuf§config_path: PathBuf§project_sol_files: Vec<String>§project_has_foundry_toml: bool§project_has_remappings: bool§project_indexed_at: DateTime<Local>§active_rpc_preset: Option<String>§active_rpc_chain: Option<String>§active_rpc_url: Option<String>§custom_templates: Vec<CustomTemplate>§custom_template_index: usize§custom_templates_global_path: PathBuf§custom_templates_project_path: PathBuf§custom_modal: Option<CustomCommandModal>§anvil_instances: Vec<AnvilInstance>§selected_anvil_index: usize§anvil_prompt: Option<AnvilLaunchPrompt>§should_quit: bool§launched_at: DateTime<Local>

Implementations§

Trait Implementations§

Source§

impl Clone for AppModel

Source§

fn clone(&self) -> AppModel

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AppModel

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.