pub struct Heartbeat {
pub hb_type: HeartbeatType,
pub timestamp: DateTime<Utc>,
pub hb_uuid: Uuid,
pub payload: Vec<HeartbeatPayload>,
}
Fields§
§hb_type: HeartbeatType
Heartbeat type
timestamp: DateTime<Utc>
Current timestamp
hb_uuid: Uuid
UUID (v4) of this heartbeat
payload: Vec<HeartbeatPayload>
Payload
Implementations§
Source§impl Heartbeat
impl Heartbeat
pub fn new( hb_type: HeartbeatType, name: String, agent_status: Option<AgentStatus>, ) -> Heartbeat
pub fn compact(payload: Vec<HeartbeatPayloadType>) -> Heartbeat
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Heartbeat
impl<'de> Deserialize<'de> for Heartbeat
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
impl StructuralPartialEq for Heartbeat
Auto Trait Implementations§
impl Freeze for Heartbeat
impl RefUnwindSafe for Heartbeat
impl Send for Heartbeat
impl Sync for Heartbeat
impl Unpin for Heartbeat
impl UnwindSafe for Heartbeat
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