pub struct SpoolEntry {
pub input: ObservationInput,
pub capsule_id: Option<Id>,
pub validate: Option<bool>,
pub spooled_at: Option<i64>,
}Expand description
A single buffered observation request, one per NDJSON line.
Field names are camelCase to match the wire shapes of the wrapped
append_observation arguments, so a spool file doubles as a debuggable /
importable record.
Fields§
§input: ObservationInputThe observation input (its id is always populated by the time it is
spooled, so replay is idempotent on id).
capsule_id: Option<Id>Optional capsule to attach the observation to.
validate: Option<bool>Optional service-side validation toggle.
spooled_at: Option<i64>Epoch milliseconds when this entry was written to the spool. Used as the
basis for the age retention cap — distinct from input.ts (the
observation time, which can be far in the past for historical replays).
Legacy entries written before this field existed deserialize to None
and are byte-trimmable but never age-trimmed.
Trait Implementations§
Source§impl Clone for SpoolEntry
impl Clone for SpoolEntry
Source§fn clone(&self) -> SpoolEntry
fn clone(&self) -> SpoolEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SpoolEntry
impl Debug for SpoolEntry
Source§impl<'de> Deserialize<'de> for SpoolEntry
impl<'de> Deserialize<'de> for SpoolEntry
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 SpoolEntry
impl RefUnwindSafe for SpoolEntry
impl Send for SpoolEntry
impl Sync for SpoolEntry
impl Unpin for SpoolEntry
impl UnsafeUnpin for SpoolEntry
impl UnwindSafe for SpoolEntry
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