pub struct Task {
Show 20 fields pub task_id: u64, pub dispatcher: String, pub sid: Sid, pub metadata: HashMap<String, String>, pub min_classification: String, pub fileinfo: FileInfo, pub filename: String, pub service_name: String, pub service_config: JsonMap, pub depth: u32, pub max_files: u32, pub ttl: u32, pub tags: Vec<TagItem>, pub temporary_submission_data: Vec<DataItem>, pub deep_scan: bool, pub ignore_cache: bool, pub ignore_dynamic_recursion_prevention: bool, pub ignore_filtering: bool, pub priority: i32, pub safelist_config: ServiceSafelist,
}
Expand description

Service Task Model

Fields§

§task_id: u64§dispatcher: String§sid: Sid

Submission ID

§metadata: HashMap<String, String>

Metadata associated to the submission

§min_classification: String

Minimum classification of the file being scanned

§fileinfo: FileInfo

File info block

§filename: String

File name

§service_name: String

Service name

§service_config: JsonMap

Service specific parameters

§depth: u32

File depth relative to initital submitted file

§max_files: u32

Maximum number of files that submission can have

§ttl: u32

Task TTL

§tags: Vec<TagItem>

List of tags

§temporary_submission_data: Vec<DataItem>

Temporary submission data

§deep_scan: bool

Perform deep scanning

§ignore_cache: bool

Whether the service cache should be ignored during the processing of this task

§ignore_dynamic_recursion_prevention: bool

Whether the service should ignore the dynamic recursion prevention or not

§ignore_filtering: bool

Should the service filter it’s output?

§priority: i32

Priority for processing order

§safelist_config: ServiceSafelist

Safelisting configuration (as defined in global configuration)

Implementations§

Trait Implementations§

source§

impl<'de> Deserialize<'de> for Task

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 Task

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§

§

impl RefUnwindSafe for Task

§

impl Send for Task

§

impl Sync for Task

§

impl Unpin for Task

§

impl UnwindSafe for Task

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, 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>,