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<String, 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: ClassificationString
classification of the submission
deep_scan: bool
Should a deep scan be performed?
description: Option<Text>
Description of the submission
generate_alert: bool
Should this submission generate an alert?
groups: Vec<UpperString>
List of groups related to this scan
ignore_cache: bool
Ignore the cached service results?
ignore_recursion_prevention: bool
Should we ignore dynamic recursion prevention?
ignore_filtering: bool
Should we ignore filtering services?
ignore_size: bool
Ignore the file size limits?
never_drop: bool
Exempt from being dropped by ingester?
malicious: bool
Is the file submitted already known to be malicious?
max_extracted: i32
Max number of extracted files
max_supplementary: i32
Max number of supplementary files
priority: u16
Priority of the scan
quota_item: bool
Does this submission count against quota?
services: ServiceSelection
Service selection
service_spec: HashMap<String, JsonMap>
Service-specific parameters
submitter: String
User who submitted the file
trace: bool
Collect extra logging information during dispatching
ttl: i32
Time, in days, to live for this submission
submission_type: String
Type of submission
initial_data: Option<Text>
Initialization for temporary submission data
auto_archive: bool
Does the submission automatically goes into the archive when completed?
delete_after_archive: bool
When the submission is archived, should we delete it from hot storage right away?
psid: Option<Sid>
Parent submission ID
use_archive_alternate_dtl: bool
Should 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
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