pub struct Host {
pub components: HashMap<String, usize>,
pub friendly_name: String,
pub labels: HashMap<String, String>,
pub providers: HashSet<ProviderInfo>,
pub uptime_seconds: usize,
pub version: Option<Version>,
pub id: String,
pub last_seen: DateTime<Utc>,
}Expand description
A wasmCloud host
Fields§
§components: HashMap<String, usize>A map of component IDs to the number of instances of the component running on the host
friendly_name: StringThe randomly generated friendly name of the host
labels: HashMap<String, String>An arbitrary hashmap of string labels attached to the host
providers: HashSet<ProviderInfo>A set of running providers on the host
uptime_seconds: usizeThe current uptime of the host in seconds
version: Option<Version>The host version that is running
id: StringThe ID of this host, in the form of its nkey encoded public key
last_seen: DateTime<Utc>The time when this host was last seen, as a RFC3339 timestamp
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Host
impl<'de> Deserialize<'de> for Host
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 From<&HostHeartbeat> for Host
impl From<&HostHeartbeat> for Host
Source§fn from(value: &HostHeartbeat) -> Self
fn from(value: &HostHeartbeat) -> Self
Converts to this type from the input type.
Source§impl From<&HostStarted> for Host
impl From<&HostStarted> for Host
Source§fn from(value: &HostStarted) -> Self
fn from(value: &HostStarted) -> Self
Converts to this type from the input type.
Source§impl From<HostHeartbeat> for Host
impl From<HostHeartbeat> for Host
Source§fn from(value: HostHeartbeat) -> Self
fn from(value: HostHeartbeat) -> Self
Converts to this type from the input type.
Source§impl From<HostStarted> for Host
impl From<HostStarted> for Host
Source§fn from(value: HostStarted) -> Self
fn from(value: HostStarted) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Host
impl RefUnwindSafe for Host
impl Send for Host
impl Sync for Host
impl Unpin for Host
impl UnwindSafe for Host
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