pub struct Settings {Show 18 fields
pub csaf_mode: String,
pub theme: String,
pub import_directory: String,
pub export_directory: String,
pub dump_directory: String,
pub sidecar_sha256: bool,
pub sidecar_sha3_512: bool,
pub naming_convention: String,
pub publisher_name: String,
pub publisher_namespace: String,
pub publisher_category: String,
pub publisher_contact_details: String,
pub tlp_default: String,
pub verschlusssache_enabled: bool,
pub verschlusssache_default: String,
pub nato_enabled: bool,
pub nato_default: String,
pub classification_storage_mode: String,
}Expand description
Application settings stored in redb.
Fields§
§csaf_mode: StringCSAF mode: "2.0" or "2.1".
theme: StringUI theme: "light" or "dark".
import_directory: StringDirectory to scan for CSAF imports.
export_directory: StringDirectory to export CSAF files to.
dump_directory: StringDirectory to write full database dumps + hash sidecars to.
sidecar_sha256: boolWhether to generate SHA-256 sidecar files.
sidecar_sha3_512: boolWhether to generate SHA3-512 sidecar files.
naming_convention: StringNaming convention prefix for CSAF files.
publisher_name: StringDefault publisher name injected into new CSAF documents.
publisher_namespace: StringDefault publisher namespace URI.
publisher_category: StringDefault publisher category (vendor, discoverer, coordinator,
user, translator, other).
publisher_contact_details: StringDefault publisher contact details (email or URL).
tlp_default: StringDefault TLP 2.0 label (one of TLP_LABELS).
verschlusssache_enabled: boolWhether the Verschlusssache (German national classification) field is exposed on the CSAF form.
verschlusssache_default: StringDefault Verschlusssache label (one of VERSCHLUSSSACHE_LABELS).
nato_enabled: boolWhether the NATO classification field is exposed on the CSAF form.
nato_default: StringDefault NATO classification label (one of NATO_LABELS).
classification_storage_mode: StringWhere to write Verschlusssache / NATO values in the exported CSAF
document. One of CLASSIFICATION_STORAGE_MODES:
"distribution_text", "notes", or "both".