pub struct ObservedEvent {
pub cursor: u64,
pub topic: String,
pub received_at: String,
pub reset_epoch: u64,
pub payload: Value,
}Expand description
One captured event. Wire-shape returned by /events/{topic} endpoints.
Fields§
§cursor: u64Server-assigned cursor, strictly increasing per topic for the life
of the process and seeded from the boot time so a restart does not
rewind it. Always below 2^53. Use it as the since= parameter on the
next poll.
topic: StringTopic name — "orders", "pnl", "marketdata:265598", "gap".
received_at: StringRFC 3339 timestamp at which the connector pushed this into the ring.
reset_epoch: u64The epoch this event was captured under. Seeded from the boot time (Unix ms) and incremented on every reconnect, so it changes on both a reconnect and a restart. Clients use it to detect a gap.
payload: ValueThe decoded JSON frame. Shape depends on the topic — see the
generated bezant-client TS types for the typed views.
Trait Implementations§
Source§impl Clone for ObservedEvent
impl Clone for ObservedEvent
Source§fn clone(&self) -> ObservedEvent
fn clone(&self) -> ObservedEvent
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 ObservedEvent
impl Debug for ObservedEvent
Auto Trait Implementations§
impl Freeze for ObservedEvent
impl RefUnwindSafe for ObservedEvent
impl Send for ObservedEvent
impl Sync for ObservedEvent
impl Unpin for ObservedEvent
impl UnsafeUnpin for ObservedEvent
impl UnwindSafe for ObservedEvent
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