pub struct OperatorEventsAccepted {
pub accepted: u32,
pub snapshot: Snapshot,
}Expand description
Response shape for POST /operator/events (ADR-016).
accepted — the number of events the engine appended to its
classifier log (matches the number sent on success; on batch
rejection the engine returns 400 so this value is never partial).
snapshot — the post-ingest classifier snapshot. Returned so the
caller can reflect any label / friction / state-vector change
without a follow-up GET /operator/state; saves a round-trip and
guarantees the snapshot the caller acts on is the one the engine
computed after the event landed.
Fields§
§accepted: u32§snapshot: SnapshotTrait Implementations§
Source§impl Clone for OperatorEventsAccepted
impl Clone for OperatorEventsAccepted
Source§fn clone(&self) -> OperatorEventsAccepted
fn clone(&self) -> OperatorEventsAccepted
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperatorEventsAccepted
impl Debug for OperatorEventsAccepted
Source§impl<'de> Deserialize<'de> for OperatorEventsAccepted
impl<'de> Deserialize<'de> for OperatorEventsAccepted
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 OperatorEventsAccepted
impl RefUnwindSafe for OperatorEventsAccepted
impl Send for OperatorEventsAccepted
impl Sync for OperatorEventsAccepted
impl Unpin for OperatorEventsAccepted
impl UnsafeUnpin for OperatorEventsAccepted
impl UnwindSafe for OperatorEventsAccepted
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