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: ServiceName,
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: u64A random ID to differentiate this task
dispatcher: StringId of the dispatcher that issued this task
dispatcher_address: String§sid: SidSubmission ID
metadata: HashMap<String, Wildcard>Metadata associated to the submission
min_classification: StringMinimum classification of the file being scanned
fileinfo: FileInfoFile info block
filename: StringFile name
service_name: ServiceNameService name
service_config: JsonMapService specific parameters
depth: u32File depth relative to initital submitted file
max_files: i32Maximum number of files that submission can have
ttl: i32Task TTL
List of tags
temporary_submission_data: Vec<DataItem>Temporary submission data
deep_scan: boolPerform deep scanning
ignore_cache: boolWhether the service cache should be ignored during the processing of this task
ignore_recursion_prevention: boolWhether the service should ignore the dynamic recursion prevention or not
ignore_filtering: boolShould the service filter it’s output?
priority: i32Priority for processing order
safelist_config: ServiceSafelistSafelisting 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
Available on crate feature rand only.
impl Distribution<Task> for StandardUniform
Available on crate feature
rand only.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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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