pub struct HostInfo {
pub os: String,
pub arch: String,
pub cpu_count: Option<u32>,
pub memory_bytes: Option<u64>,
pub hostname_hash: Option<String>,
}Fields§
§os: StringOperating system (e.g., “linux”, “macos”, “windows”)
arch: StringCPU architecture (e.g., “x86_64”, “aarch64”)
cpu_count: Option<u32>Number of logical CPUs (best-effort, None if unavailable)
memory_bytes: Option<u64>Total system memory in bytes (best-effort, None if unavailable)
hostname_hash: Option<String>Hashed hostname for fingerprinting (opt-in, privacy-preserving). When present, this is a SHA-256 hash of the actual hostname.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HostInfo
impl<'de> Deserialize<'de> for HostInfo
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 JsonSchema for HostInfo
impl JsonSchema for HostInfo
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl Eq for HostInfo
impl StructuralPartialEq for HostInfo
Auto Trait Implementations§
impl Freeze for HostInfo
impl RefUnwindSafe for HostInfo
impl Send for HostInfo
impl Sync for HostInfo
impl Unpin for HostInfo
impl UnsafeUnpin for HostInfo
impl UnwindSafe for HostInfo
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