pub struct DetectionTask {
pub task_id: String,
pub name: String,
pub description: String,
pub target_classes: Vec<String>,
pub filter: Option<DetectionFilter>,
pub product_delivery: Option<ProductDelivery>,
pub area_of_interest: Option<AreaOfInterest>,
pub schedule: Option<TaskSchedule>,
pub priority: i32,
pub issued_by: String,
pub issued_at: Option<Timestamp>,
pub target_platforms: Vec<String>,
}Expand description
Detection task - specifies what an AI platform should detect and report
This message flows downward from C2 to edge platforms, configuring the detection pipeline with target classes, thresholds, and product delivery.
Fields§
§task_id: StringUnique task identifier (e.g., “TASK-2025-001”)
name: StringHuman-readable task name
description: StringTask description/purpose
target_classes: Vec<String>Target classes to detect (e.g., [“person”, “boat”, “vehicle”]) If empty, detect all classes the model supports
filter: Option<DetectionFilter>Detection filtering parameters
product_delivery: Option<ProductDelivery>What products to generate and send upward
area_of_interest: Option<AreaOfInterest>Geographic area of interest (optional)
schedule: Option<TaskSchedule>Task scheduling and duration
priority: i32Task priority
issued_by: StringIssuing authority
issued_at: Option<Timestamp>Timestamp when task was issued
target_platforms: Vec<String>Target platform IDs (empty = broadcast to all capable platforms)
Implementations§
Source§impl DetectionTask
impl DetectionTask
Sourcepub fn priority(&self) -> TaskPriority
pub fn priority(&self) -> TaskPriority
Returns the enum value of priority, or the default if the field is set to an invalid enum value.
Sourcepub fn set_priority(&mut self, value: TaskPriority)
pub fn set_priority(&mut self, value: TaskPriority)
Sets priority to the provided enum value.
Trait Implementations§
Source§impl Clone for DetectionTask
impl Clone for DetectionTask
Source§fn clone(&self) -> DetectionTask
fn clone(&self) -> DetectionTask
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DetectionTask
impl Debug for DetectionTask
Source§impl Default for DetectionTask
impl Default for DetectionTask
Source§impl<'de> Deserialize<'de> for DetectionTask
impl<'de> Deserialize<'de> for DetectionTask
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>,
Source§impl Message for DetectionTask
impl Message for DetectionTask
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for DetectionTask
impl PartialEq for DetectionTask
Source§fn eq(&self, other: &DetectionTask) -> bool
fn eq(&self, other: &DetectionTask) -> bool
self and other values to be equal, and is used by ==.