pub struct Worker {Show 21 fields
pub _id: Option<String>,
pub name: Option<String>,
pub version: Option<String>,
pub worker_definition_id: Option<String>,
pub description: Option<String>,
pub author: Option<String>,
pub url: Option<String>,
pub license: Option<String>,
pub command: Option<Option<String>>,
pub docker_image: Option<Option<String>>,
pub data_type_list: Option<Vec<String>>,
pub configuration: Option<Box<WorkerConfiguration>>,
pub base_config: Option<String>,
pub rate: Option<Option<f64>>,
pub rate_unit: Option<Option<RateUnit>>,
pub job_cache: Option<Option<f64>>,
pub job_timeout: Option<Option<f64>>,
pub type: Option<Type>,
pub analyzer_definition_id: Option<String>,
pub max_tlp: Option<Option<f64>>,
pub max_pap: Option<Option<f64>>,
}Expand description
Worker : Represents an Analyzer or Responder. The ‘configuration’ field’s structure depends on the specific worker and admin privileges.
Fields§
§_id: Option<String>The unique ID of the worker (analyzer/responder).
name: Option<String>§version: Option<String>§worker_definition_id: Option<String>ID of the definition this worker is based on.
description: Option<String>§url: Option<String>§license: Option<String>§command: Option<Option<String>>Command to execute for process-based workers.
docker_image: Option<Option<String>>Docker image for containerized workers.
data_type_list: Option<Vec<String>>List of data types this worker can process.
configuration: Option<Box<WorkerConfiguration>>§base_config: Option<String>Key for the base configuration.
rate: Option<Option<f64>>§rate_unit: Option<Option<RateUnit>>§job_cache: Option<Option<f64>>§job_timeout: Option<Option<f64>>§type: Option<Type>§analyzer_definition_id: Option<String>§max_tlp: Option<Option<f64>>§max_pap: Option<Option<f64>>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Worker
impl<'de> Deserialize<'de> for Worker
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
impl StructuralPartialEq for Worker
Auto Trait Implementations§
impl Freeze for Worker
impl RefUnwindSafe for Worker
impl Send for Worker
impl Sync for Worker
impl Unpin for Worker
impl UnwindSafe for Worker
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