pub struct Task {Show 21 fields
pub task_id: u64,
pub dispatcher: String,
pub dispatcher_address: String,
pub sid: Sid,
pub metadata: HashMap<String, Wildcard>,
pub min_classification: String,
pub fileinfo: FileInfo,
pub filename: String,
pub service_name: String,
pub service_config: JsonMap,
pub depth: u32,
pub max_files: i32,
pub ttl: i32,
pub tags: Vec<TagItem>,
pub temporary_submission_data: Vec<DataItem>,
pub deep_scan: bool,
pub ignore_cache: bool,
pub ignore_recursion_prevention: bool,
pub ignore_filtering: bool,
pub priority: i32,
pub safelist_config: ServiceSafelist,
}
Expand description
Service Task Model
Fields§
§task_id: u64
A random ID to differentiate this task
dispatcher: String
Id of the dispatcher that issued this task
dispatcher_address: String
§sid: Sid
Submission ID
metadata: HashMap<String, Wildcard>
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: i32
Maximum number of files that submission can have
ttl: i32
Task TTL
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_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
impl<'de> Deserialize<'de> for Task
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Distribution<Task> for StandardUniform
impl Distribution<Task> for StandardUniform
impl Eq for Task
impl StructuralPartialEq for Task
Auto Trait Implementations§
impl Freeze for Task
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> 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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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>
Converts
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>
Converts
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