pub struct CloudInfo {
pub cloud_vendor_id: Option<String>,
pub cloud_account_id: Option<String>,
pub cloud_region_id: Option<String>,
pub cloud_zone_id: Option<String>,
pub cloud_instance_type: Option<String>,
}Expand description
Cloud instance metadata collected via IMDS probes at startup.
All fields are None on non-cloud hosts or when the IMDS probe times out.
Used in the Sentinel API registration payload (Section 9.1).
Fields§
§cloud_vendor_id: Option<String>Cloud provider identifier.
cloud_account_id: Option<String>Cloud account ID (usually not available from metadata service).
cloud_region_id: Option<String>Cloud region or location string for the active provider (e.g. AWS region, GCP
region derived from zone, Azure location, Hetzner region, UpCloud region).
cloud_zone_id: Option<String>Cloud availability zone.
cloud_instance_type: Option<String>Instance type / size / flavor (machine type on GCP, vmSize on Azure).
UpCloud metadata does not expose a type; this field stays None there.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CloudInfo
impl<'de> Deserialize<'de> for CloudInfo
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 CloudInfo
impl RefUnwindSafe for CloudInfo
impl Send for CloudInfo
impl Sync for CloudInfo
impl Unpin for CloudInfo
impl UnsafeUnpin for CloudInfo
impl UnwindSafe for CloudInfo
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