aboutsummaryrefslogtreecommitdiff
path: root/src-tauri
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-10-13 03:26:15 +0200
committerGitHub <noreply@github.com>2023-10-13 03:26:15 +0200
commitf49ab2e39ea479af886ecd3c325d16bc4df4046f (patch)
tree73313cf1b6f497fae9ef3815970fca5e273a253e /src-tauri
parent3137cc15d1284f86497a0374fc2f165135129ab3 (diff)
downloadFlightCore-f49ab2e39ea479af886ecd3c325d16bc4df4046f.tar.gz
FlightCore-f49ab2e39ea479af886ecd3c325d16bc4df4046f.zip
docs: Add doc comments to some structs (#621)
Diffstat (limited to 'src-tauri')
-rw-r--r--src-tauri/src/main.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index 6b0425cd..1d20bf74 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -387,6 +387,7 @@ async fn get_available_northstar_versions() -> Result<Vec<NorthstarThunderstoreR
use anyhow::Result;
+/// Defines how Titanfall2 was installed (Steam, Origin, ...)
#[derive(Serialize, Deserialize, Debug, Clone, TS)]
#[ts(export)]
pub enum InstallType {
@@ -396,6 +397,10 @@ pub enum InstallType {
UNKNOWN,
}
+/// Object holding information of the Titanfall2 install, including
+/// - Install path
+/// - Active profile
+/// - Type of installation (Steam, Origin, ...)
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct GameInstall {
pub game_path: String,
@@ -403,6 +408,7 @@ pub struct GameInstall {
pub install_type: InstallType,
}
+/// Object holding various information about a Northstar mod
#[derive(Serialize, Deserialize, Debug, Clone, TS)]
#[ts(export)]
pub struct NorthstarMod {