pub struct FleetEvent {
pub seq: u64,
pub ts: String,
pub repo: String,
pub agent_id: String,
pub kind: EventKind,
}Expand description
A normalized, sequenced fleet event.
Fields§
§seq: u64Monotonic sequence number assigned by the FleetManager.
ts: StringRFC-3339 timestamp.
repo: StringOwning repo name (“” for fleet-level events).
agent_id: StringOwning agent id (“” for repo-level events).
kind: EventKindThe event payload.
Implementations§
Source§impl FleetEvent
impl FleetEvent
Sourcepub fn stream_key(&self) -> String
pub fn stream_key(&self) -> String
The ordered stream this event belongs to (see stream_key_for).
Trait Implementations§
Source§impl Clone for FleetEvent
impl Clone for FleetEvent
Source§fn clone(&self) -> FleetEvent
fn clone(&self) -> FleetEvent
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 FleetEvent
impl Debug for FleetEvent
Source§impl<'de> Deserialize<'de> for FleetEvent
impl<'de> Deserialize<'de> for FleetEvent
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
Source§impl PartialEq for FleetEvent
impl PartialEq for FleetEvent
Source§fn eq(&self, other: &FleetEvent) -> bool
fn eq(&self, other: &FleetEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FleetEvent
impl Serialize for FleetEvent
impl StructuralPartialEq for FleetEvent
Auto Trait Implementations§
impl Freeze for FleetEvent
impl RefUnwindSafe for FleetEvent
impl Send for FleetEvent
impl Sync for FleetEvent
impl Unpin for FleetEvent
impl UnsafeUnpin for FleetEvent
impl UnwindSafe for FleetEvent
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