pub struct ServiceRuntimeMetadata {
pub contract_version: String,
pub snapshot_metadata_version: String,
pub captured_at: DateTime<Utc>,
pub service_name: String,
pub protocol: Option<String>,
pub state: ServiceState,
pub ready: bool,
pub started_at: Option<DateTime<Utc>>,
pub last_error: Option<String>,
}Expand description
Runtime-owned stable service snapshot metadata.
Fields§
§contract_version: String§snapshot_metadata_version: String§captured_at: DateTime<Utc>§service_name: String§protocol: Option<String>§state: ServiceState§ready: bool§started_at: Option<DateTime<Utc>>§last_error: Option<String>Implementations§
Source§impl ServiceRuntimeMetadata
impl ServiceRuntimeMetadata
Sourcepub fn from_snapshot(snapshot: &ServiceSnapshot) -> Self
pub fn from_snapshot(snapshot: &ServiceSnapshot) -> Self
Builds runtime metadata from the current service snapshot.
Trait Implementations§
Source§impl Clone for ServiceRuntimeMetadata
impl Clone for ServiceRuntimeMetadata
Source§fn clone(&self) -> ServiceRuntimeMetadata
fn clone(&self) -> ServiceRuntimeMetadata
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 ServiceRuntimeMetadata
impl Debug for ServiceRuntimeMetadata
Source§impl<'de> Deserialize<'de> for ServiceRuntimeMetadata
impl<'de> Deserialize<'de> for ServiceRuntimeMetadata
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 ServiceRuntimeMetadata
impl PartialEq for ServiceRuntimeMetadata
Source§fn eq(&self, other: &ServiceRuntimeMetadata) -> bool
fn eq(&self, other: &ServiceRuntimeMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ServiceRuntimeMetadata
impl Serialize for ServiceRuntimeMetadata
impl StructuralPartialEq for ServiceRuntimeMetadata
Auto Trait Implementations§
impl Freeze for ServiceRuntimeMetadata
impl RefUnwindSafe for ServiceRuntimeMetadata
impl Send for ServiceRuntimeMetadata
impl Sync for ServiceRuntimeMetadata
impl Unpin for ServiceRuntimeMetadata
impl UnsafeUnpin for ServiceRuntimeMetadata
impl UnwindSafe for ServiceRuntimeMetadata
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