pub struct LocalEnvironmentInfo {
pub arch: String,
pub hostname: String,
pub os: String,
}Expand description
Local platform environment information
JSON schema
{
"description": "Local platform environment information",
"type": "object",
"required": [
"arch",
"hostname",
"os"
],
"properties": {
"arch": {
"description": "Architecture (e.g., \"x86_64\", \"aarch64\")",
"type": "string"
},
"hostname": {
"description": "Hostname of the machine running the agent",
"type": "string"
},
"os": {
"description": "Operating system (e.g., \"linux\", \"macos\", \"windows\")",
"type": "string"
}
}
}Fields§
§arch: StringArchitecture (e.g., “x86_64”, “aarch64”)
hostname: StringHostname of the machine running the agent
os: StringOperating system (e.g., “linux”, “macos”, “windows”)
Implementations§
Source§impl LocalEnvironmentInfo
impl LocalEnvironmentInfo
pub fn builder() -> LocalEnvironmentInfo
Trait Implementations§
Source§impl Clone for LocalEnvironmentInfo
impl Clone for LocalEnvironmentInfo
Source§fn clone(&self) -> LocalEnvironmentInfo
fn clone(&self) -> LocalEnvironmentInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 LocalEnvironmentInfo
impl Debug for LocalEnvironmentInfo
Source§impl<'de> Deserialize<'de> for LocalEnvironmentInfo
impl<'de> Deserialize<'de> for LocalEnvironmentInfo
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<&LocalEnvironmentInfo> for LocalEnvironmentInfo
impl From<&LocalEnvironmentInfo> for LocalEnvironmentInfo
Source§fn from(value: &LocalEnvironmentInfo) -> Self
fn from(value: &LocalEnvironmentInfo) -> Self
Converts to this type from the input type.
Source§impl From<LocalEnvironmentInfo> for LocalEnvironmentInfo
impl From<LocalEnvironmentInfo> for LocalEnvironmentInfo
Source§fn from(value: LocalEnvironmentInfo) -> Self
fn from(value: LocalEnvironmentInfo) -> Self
Converts to this type from the input type.
Source§impl Serialize for LocalEnvironmentInfo
impl Serialize for LocalEnvironmentInfo
Source§impl TryFrom<LocalEnvironmentInfo> for LocalEnvironmentInfo
impl TryFrom<LocalEnvironmentInfo> for LocalEnvironmentInfo
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: LocalEnvironmentInfo) -> Result<Self, ConversionError>
fn try_from(value: LocalEnvironmentInfo) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for LocalEnvironmentInfo
impl RefUnwindSafe for LocalEnvironmentInfo
impl Send for LocalEnvironmentInfo
impl Sync for LocalEnvironmentInfo
impl Unpin for LocalEnvironmentInfo
impl UnsafeUnpin for LocalEnvironmentInfo
impl UnwindSafe for LocalEnvironmentInfo
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