pub enum EnvironmentInfo {
Variant0 {
account_id: String,
platform: EnvironmentInfoVariant0Platform,
region: String,
},
Variant1 {
platform: EnvironmentInfoVariant1Platform,
project_id: String,
project_number: String,
region: String,
},
Variant2 {
location: String,
platform: EnvironmentInfoVariant2Platform,
subscription_id: String,
tenant_id: String,
},
Variant3 {
arch: String,
hostname: String,
os: String,
platform: EnvironmentInfoVariant3Platform,
},
Variant4 {
platform: EnvironmentInfoVariant4Platform,
test_id: String,
},
}Expand description
Platform-specific environment information
JSON schema
{
"description": "Platform-specific environment information",
"oneOf": [
{
"description": "AWS environment information",
"allOf": [
{
"description": "AWS environment information",
"allOf": [
{
"$ref": "#/components/schemas/AwsEnvironmentInfo"
}
]
},
{
"type": "object",
"required": [
"platform"
],
"properties": {
"platform": {
"type": "string",
"enum": [
"aws"
]
}
}
}
]
},
{
"description": "GCP environment information",
"allOf": [
{
"description": "GCP environment information",
"allOf": [
{
"$ref": "#/components/schemas/GcpEnvironmentInfo"
}
]
},
{
"type": "object",
"required": [
"platform"
],
"properties": {
"platform": {
"type": "string",
"enum": [
"gcp"
]
}
}
}
]
},
{
"description": "Azure environment information",
"allOf": [
{
"description": "Azure environment information",
"allOf": [
{
"$ref": "#/components/schemas/AzureEnvironmentInfo"
}
]
},
{
"type": "object",
"required": [
"platform"
],
"properties": {
"platform": {
"type": "string",
"enum": [
"azure"
]
}
}
}
]
},
{
"description": "Local platform environment information",
"allOf": [
{
"description": "Local platform environment information",
"allOf": [
{
"$ref": "#/components/schemas/LocalEnvironmentInfo"
}
]
},
{
"type": "object",
"required": [
"platform"
],
"properties": {
"platform": {
"type": "string",
"enum": [
"local"
]
}
}
}
]
},
{
"description": "Test platform environment information (mock)",
"allOf": [
{
"description": "Test platform environment information (mock)",
"allOf": [
{
"$ref": "#/components/schemas/TestEnvironmentInfo"
}
]
},
{
"type": "object",
"required": [
"platform"
],
"properties": {
"platform": {
"type": "string",
"enum": [
"test"
]
}
}
}
]
}
]
}Variants§
Variant0
Fields
§
platform: EnvironmentInfoVariant0PlatformVariant1
Fields
§
platform: EnvironmentInfoVariant1PlatformVariant2
Fields
§
platform: EnvironmentInfoVariant2PlatformVariant3
Fields
§
platform: EnvironmentInfoVariant3PlatformVariant4
Fields
§
platform: EnvironmentInfoVariant4PlatformTrait Implementations§
Source§impl Clone for EnvironmentInfo
impl Clone for EnvironmentInfo
Source§fn clone(&self) -> EnvironmentInfo
fn clone(&self) -> EnvironmentInfo
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 EnvironmentInfo
impl Debug for EnvironmentInfo
Source§impl<'de> Deserialize<'de> for EnvironmentInfo
impl<'de> Deserialize<'de> for EnvironmentInfo
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<&EnvironmentInfo> for EnvironmentInfo
impl From<&EnvironmentInfo> for EnvironmentInfo
Source§fn from(value: &EnvironmentInfo) -> Self
fn from(value: &EnvironmentInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EnvironmentInfo
impl RefUnwindSafe for EnvironmentInfo
impl Send for EnvironmentInfo
impl Sync for EnvironmentInfo
impl Unpin for EnvironmentInfo
impl UnsafeUnpin for EnvironmentInfo
impl UnwindSafe for EnvironmentInfo
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