pub struct SubmissionParams {Show 26 fields
pub classification: ClassificationString,
pub deep_scan: bool,
pub description: Option<Text>,
pub generate_alert: bool,
pub groups: Vec<UpperString>,
pub ignore_cache: bool,
pub ignore_recursion_prevention: bool,
pub ignore_filtering: bool,
pub ignore_size: bool,
pub never_drop: bool,
pub malicious: bool,
pub max_extracted: i32,
pub max_supplementary: i32,
pub priority: u16,
pub quota_item: bool,
pub services: ServiceSelection,
pub service_spec: HashMap<ServiceName, JsonMap>,
pub submitter: String,
pub trace: bool,
pub ttl: i32,
pub submission_type: String,
pub initial_data: Option<Text>,
pub auto_archive: bool,
pub delete_after_archive: bool,
pub psid: Option<Sid>,
pub use_archive_alternate_dtl: bool,
}Expand description
Submission Parameters
Fields§
§classification: ClassificationStringclassification of the submission
deep_scan: boolShould a deep scan be performed?
description: Option<Text>Description of the submission
generate_alert: boolShould this submission generate an alert?
groups: Vec<UpperString>List of groups related to this scan
ignore_cache: boolIgnore the cached service results?
ignore_recursion_prevention: boolShould we ignore dynamic recursion prevention?
ignore_filtering: boolShould we ignore filtering services?
ignore_size: boolIgnore the file size limits?
never_drop: boolExempt from being dropped by ingester?
malicious: boolIs the file submitted already known to be malicious?
max_extracted: i32Max number of extracted files
max_supplementary: i32Max number of supplementary files
priority: u16Priority of the scan
quota_item: boolDoes this submission count against quota?
services: ServiceSelectionService selection
service_spec: HashMap<ServiceName, JsonMap>Service-specific parameters
submitter: StringUser who submitted the file
trace: boolCollect extra logging information during dispatching
ttl: i32Time, in days, to live for this submission
submission_type: StringType of submission
initial_data: Option<Text>Initialization for temporary submission data
auto_archive: boolDoes the submission automatically goes into the archive when completed?
delete_after_archive: boolWhen the submission is archived, should we delete it from hot storage right away?
psid: Option<Sid>Parent submission ID
use_archive_alternate_dtl: boolShould we use the alternate dtl while archiving?
Implementations§
Source§impl SubmissionParams
impl SubmissionParams
pub fn new(classification: ClassificationString) -> Self
pub fn set_description(self, text: &str) -> Self
pub fn set_services_selected(self, selected: &[&str]) -> Self
pub fn set_submitter(self, submitter: &str) -> Self
pub fn set_groups(self, groups: &[&str]) -> Self
pub fn set_max_extracted(self, max_extracted: i32) -> Self
pub fn set_generate_alert(self, alert: bool) -> Self
Sourcepub fn create_filescore_key(
&self,
sha256: &Sha256,
services: Option<Vec<ServiceName>>,
) -> String
pub fn create_filescore_key( &self, sha256: &Sha256, services: Option<Vec<ServiceName>>, ) -> String
This is the key used to store the final score of a submission for fast lookup.
This lookup is one of the methods used to check for duplication in ingestion process, so this key is fairly sensitive.
Trait Implementations§
Source§impl Clone for SubmissionParams
impl Clone for SubmissionParams
Source§fn clone(&self) -> SubmissionParams
fn clone(&self) -> SubmissionParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SubmissionParams
impl Debug for SubmissionParams
Source§impl Described<ElasticMeta> for SubmissionParams
impl Described<ElasticMeta> for SubmissionParams
Source§fn metadata() -> Descriptor<ElasticMeta>
fn metadata() -> Descriptor<ElasticMeta>
Source§impl<'de> Deserialize<'de> for SubmissionParams
impl<'de> Deserialize<'de> for SubmissionParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for SubmissionParams
impl RefUnwindSafe for SubmissionParams
impl Send for SubmissionParams
impl Sync for SubmissionParams
impl Unpin for SubmissionParams
impl UnwindSafe for SubmissionParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more