pub struct AiIngest {
pub camera_id: String,
pub task_type: String,
pub timestamp: Option<String>,
pub frame_id: Option<String>,
pub detections: Vec<DetectionIngest>,
pub event: Option<IngestEvent>,
}Expand description
Payload an AI worker POSTs to ingest detections (and optionally an event) for a camera.
Fields§
§camera_id: String§task_type: String§timestamp: Option<String>§frame_id: Option<String>Optional per-camera monotonic frame id. When present, ingest is idempotent on (camera_id, frame_id): a duplicate redelivery is a no-op (no double-insert, no re-fire of consumer side effects). Omit it (e.g. the dependency-light client) to accept every batch.
detections: Vec<DetectionIngest>§event: Option<IngestEvent>Trait Implementations§
Source§impl<'de> Deserialize<'de> for AiIngest
impl<'de> Deserialize<'de> for AiIngest
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
Auto Trait Implementations§
impl Freeze for AiIngest
impl RefUnwindSafe for AiIngest
impl Send for AiIngest
impl Sync for AiIngest
impl Unpin for AiIngest
impl UnsafeUnpin for AiIngest
impl UnwindSafe for AiIngest
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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