summaryrefslogtreecommitdiff
path: root/src/types.rs
blob: bd903dfa4bf0b0ab42f43d65e228f3a96bbf9559 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use serde::Serialize;
use std::path::PathBuf;

#[derive(Debug, Serialize)]
pub struct AppImage {
    pub file_path: PathBuf,
    pub executable: String,
    pub source: Source,
}

#[derive(Debug, Serialize)]
pub struct Source {
    pub identifier: String,
    pub meta: SourceMetadata,
}

#[derive(Debug, Serialize)]
pub struct SourceMetadata {
    pub url: String,
}