pub struct HeartbeatResponse {
pub success: bool,
pub needs_register: bool,
pub agent_id: String,
pub timestamp: DateTime<Utc>,
pub message: Option<String>,
}Expand description
Heartbeat acknowledgement returned to agents.
Fields§
§success: boolIndicates whether the heartbeat succeeded.
needs_register: boolSignals that the agent must re-register.
agent_id: StringAgent identifier associated with the heartbeat.
timestamp: DateTime<Utc>Registry timestamp recorded for the heartbeat.
message: Option<String>Optional informational message.
Trait Implementations§
Source§impl Clone for HeartbeatResponse
impl Clone for HeartbeatResponse
Source§fn clone(&self) -> HeartbeatResponse
fn clone(&self) -> HeartbeatResponse
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 HeartbeatResponse
impl Debug for HeartbeatResponse
Source§impl<'de> Deserialize<'de> for HeartbeatResponse
impl<'de> Deserialize<'de> for HeartbeatResponse
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 HeartbeatResponse
impl RefUnwindSafe for HeartbeatResponse
impl Send for HeartbeatResponse
impl Sync for HeartbeatResponse
impl Unpin for HeartbeatResponse
impl UnwindSafe for HeartbeatResponse
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