Struct google_api_proto::google::cloud::gdchardwaremanagement::v1alpha::HardwarePhysicalInfo
source · pub struct HardwarePhysicalInfo {
pub power_receptacle: i32,
pub network_uplink: i32,
pub voltage: i32,
pub amperes: i32,
}
Expand description
Physical properties of a hardware.
Fields§
§power_receptacle: i32
Required. The power receptacle type.
network_uplink: i32
Required. Type of the uplink network connection.
voltage: i32
Required. Voltage of the power supply.
amperes: i32
Required. Amperes of the power supply.
Implementations§
source§impl HardwarePhysicalInfo
impl HardwarePhysicalInfo
sourcepub fn power_receptacle(&self) -> PowerReceptacleType
pub fn power_receptacle(&self) -> PowerReceptacleType
Returns the enum value of power_receptacle
, or the default if the field is set to an invalid enum value.
sourcepub fn set_power_receptacle(&mut self, value: PowerReceptacleType)
pub fn set_power_receptacle(&mut self, value: PowerReceptacleType)
Sets power_receptacle
to the provided enum value.
sourcepub fn network_uplink(&self) -> NetworkUplinkType
pub fn network_uplink(&self) -> NetworkUplinkType
Returns the enum value of network_uplink
, or the default if the field is set to an invalid enum value.
sourcepub fn set_network_uplink(&mut self, value: NetworkUplinkType)
pub fn set_network_uplink(&mut self, value: NetworkUplinkType)
Sets network_uplink
to the provided enum value.
sourcepub fn voltage(&self) -> Voltage
pub fn voltage(&self) -> Voltage
Returns the enum value of voltage
, or the default if the field is set to an invalid enum value.
sourcepub fn set_voltage(&mut self, value: Voltage)
pub fn set_voltage(&mut self, value: Voltage)
Sets voltage
to the provided enum value.
sourcepub fn amperes(&self) -> Amperes
pub fn amperes(&self) -> Amperes
Returns the enum value of amperes
, or the default if the field is set to an invalid enum value.
sourcepub fn set_amperes(&mut self, value: Amperes)
pub fn set_amperes(&mut self, value: Amperes)
Sets amperes
to the provided enum value.
Trait Implementations§
source§impl Clone for HardwarePhysicalInfo
impl Clone for HardwarePhysicalInfo
source§fn clone(&self) -> HardwarePhysicalInfo
fn clone(&self) -> HardwarePhysicalInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HardwarePhysicalInfo
impl Debug for HardwarePhysicalInfo
source§impl Default for HardwarePhysicalInfo
impl Default for HardwarePhysicalInfo
source§impl Message for HardwarePhysicalInfo
impl Message for HardwarePhysicalInfo
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for HardwarePhysicalInfo
impl PartialEq for HardwarePhysicalInfo
source§fn eq(&self, other: &HardwarePhysicalInfo) -> bool
fn eq(&self, other: &HardwarePhysicalInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for HardwarePhysicalInfo
impl StructuralPartialEq for HardwarePhysicalInfo
Auto Trait Implementations§
impl Freeze for HardwarePhysicalInfo
impl RefUnwindSafe for HardwarePhysicalInfo
impl Send for HardwarePhysicalInfo
impl Sync for HardwarePhysicalInfo
impl Unpin for HardwarePhysicalInfo
impl UnwindSafe for HardwarePhysicalInfo
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request