Skip to content

Commit

Permalink
feat: Add support to Export Report Types.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt committed Aug 23, 2024
1 parent f5883f2 commit 7561008
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/models/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ pub struct DependendField {
pub parent_name: Option<String>
}

#[derive(Deserialize, Serialize, Extractible, Debug, Clone)]
pub struct ReportExportType {
pub name: Option<String>,
pub r#type: Option<String>
}

#[derive(Deserialize, Serialize, Extractible, Debug, Clone)]
pub struct DictionaryEntity {
pub internal_id: Option<i32>,
Expand All @@ -65,6 +71,7 @@ pub struct Process {
pub is_report: Option<bool>,
pub report_view_id: Option<i32>,
pub print_format_id: Option<i32>,
pub report_export_types: Option<Vec<ReportExportType>>,
// Linked
pub browser_id: Option<i32>,
pub browser: Option<DictionaryEntity>,
Expand Down Expand Up @@ -138,6 +145,7 @@ impl Default for Process {
is_report: None,
print_format_id: None,
report_view_id: None,
report_export_types: None,
// Linked
browser_id: None,
browser: None,
Expand Down Expand Up @@ -176,7 +184,8 @@ impl IndexDocument for Process {
"code" : { "type" : "text" },
"name" : { "type" : "text" },
"description" : { "type" : "text" },
"help" : { "type" : "text" }
"help" : { "type" : "text" },
"is_report" : { "type" : "boolean" }
}
}
})
Expand Down

0 comments on commit 7561008

Please sign in to comment.