pub struct ServiceReadinessReport {
pub contract_version: String,
pub checked_at: DateTime<Utc>,
pub service_name: String,
pub protocol: Option<String>,
pub state: ServiceState,
pub ready: bool,
pub timeout_ms: u64,
pub error: Option<RuntimeErrorInfo>,
}Expand description
Structured readiness report for runner-facing health checks.
Fields§
§contract_version: String§checked_at: DateTime<Utc>§service_name: String§protocol: Option<String>§state: ServiceState§ready: bool§timeout_ms: u64§error: Option<RuntimeErrorInfo>Implementations§
Source§impl ServiceReadinessReport
impl ServiceReadinessReport
Sourcepub fn from_status(
status: ServiceStatus,
timeout: Duration,
error: Option<RuntimeErrorInfo>,
) -> Self
pub fn from_status( status: ServiceStatus, timeout: Duration, error: Option<RuntimeErrorInfo>, ) -> Self
Builds a readiness report from a status and optional error.
Trait Implementations§
Source§impl Clone for ServiceReadinessReport
impl Clone for ServiceReadinessReport
Source§fn clone(&self) -> ServiceReadinessReport
fn clone(&self) -> ServiceReadinessReport
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 ServiceReadinessReport
impl Debug for ServiceReadinessReport
Source§impl<'de> Deserialize<'de> for ServiceReadinessReport
impl<'de> Deserialize<'de> for ServiceReadinessReport
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 ServiceReadinessReport
impl PartialEq for ServiceReadinessReport
Source§fn eq(&self, other: &ServiceReadinessReport) -> bool
fn eq(&self, other: &ServiceReadinessReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ServiceReadinessReport
impl Serialize for ServiceReadinessReport
impl StructuralPartialEq for ServiceReadinessReport
Auto Trait Implementations§
impl Freeze for ServiceReadinessReport
impl RefUnwindSafe for ServiceReadinessReport
impl Send for ServiceReadinessReport
impl Sync for ServiceReadinessReport
impl Unpin for ServiceReadinessReport
impl UnsafeUnpin for ServiceReadinessReport
impl UnwindSafe for ServiceReadinessReport
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