github source v1
This commit is contained in:
parent
71f89dde9c
commit
caf870d05e
50 changed files with 4139 additions and 131 deletions
|
|
@ -1,3 +1,6 @@
|
|||
use crate::domain::source::SourceRef;
|
||||
use crate::domain::update::{ParsedMetadata, UpdateStrategy};
|
||||
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
pub enum InstallScope {
|
||||
User,
|
||||
|
|
@ -22,4 +25,14 @@ pub struct AppIdentity {
|
|||
pub struct AppRecord {
|
||||
pub stable_id: String,
|
||||
pub display_name: String,
|
||||
#[serde(default)]
|
||||
pub source_input: Option<String>,
|
||||
#[serde(default)]
|
||||
pub source: Option<SourceRef>,
|
||||
#[serde(default)]
|
||||
pub installed_version: Option<String>,
|
||||
#[serde(default)]
|
||||
pub update_strategy: Option<UpdateStrategy>,
|
||||
#[serde(default)]
|
||||
pub metadata: Vec<ParsedMetadata>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue