Struct docker_api::models::Platform
source · pub struct Platform {
pub architecture: Option<String>,
pub os: Option<String>,
}
Expand description
Platform represents the platform (Arch/OS).
Fields§
§architecture: Option<String>
Architecture represents the hardware architecture (for example,
x86_64
).
os: Option<String>
OS represents the Operating System (for example, linux
or windows
).
Trait Implementations§
source§impl<'de> Deserialize<'de> for Platform
impl<'de> Deserialize<'de> for Platform
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Platform, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Platform, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Platform> for Platform
impl PartialEq<Platform> for Platform
source§impl Serialize for Platform
impl Serialize for Platform
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more