pub struct SubmissionParams {
Show 24 fields pub classification: ClassificationString, pub deep_scan: bool, pub description: Option<String>, pub generate_alert: bool, pub groups: Vec<String>, pub ignore_cache: bool, pub ignore_dynamic_recursion_prevention: bool, pub ignore_filtering: bool, pub ignore_size: bool, pub never_drop: bool, pub malicious: bool, pub max_extracted: u32, pub max_supplementary: u32, pub priority: u16, pub profile: bool, pub quota_item: bool, pub services: ServiceSelection, pub service_spec: HashMap<String, JsonMap>, pub submitter: String, pub ttl: u32, pub submission_type: String, pub initial_data: Option<String>, pub auto_archive: bool, pub delete_after_archive: bool,
}
Expand description

Submission Parameters

Fields§

§classification: ClassificationString

classification of the submission

§deep_scan: bool

Should a deep scan be performed?

§description: Option<String>

Description of the submission

§generate_alert: bool

Should this submission generate an alert?

§groups: Vec<String>

List of groups related to this scan

§ignore_cache: bool

Ignore the cached service results?

§ignore_dynamic_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: u32

Max number of extracted files

§max_supplementary: u32

Max number of supplementary files

§priority: u16

Priority of the scan

§profile: bool

Should the submission do extra profiling?

§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

§ttl: u32

Time, in days, to live for this submission

§submission_type: String

Type of submission

§initial_data: Option<String>

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?

Trait Implementations§

source§

impl Clone for SubmissionParams

source§

fn clone(&self) -> SubmissionParams

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SubmissionParams

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for SubmissionParams

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Described<ElasticMeta> for SubmissionParams

source§

fn metadata() -> Descriptor<ElasticMeta>

Get self description of this type
source§

impl<'de> Deserialize<'de> for SubmissionParams

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for SubmissionParams

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,