pub struct ClimateStateResponse {Show 15 fields
pub key: u32,
pub mode: i32,
pub current_temperature: f32,
pub target_temperature: f32,
pub target_temperature_low: f32,
pub target_temperature_high: f32,
pub unused_legacy_away: bool,
pub action: i32,
pub fan_mode: i32,
pub swing_mode: i32,
pub custom_fan_mode: String,
pub preset: i32,
pub custom_preset: String,
pub current_humidity: f32,
pub target_humidity: f32,
}Fields§
§key: u32§mode: i32§current_temperature: f32§target_temperature: f32§target_temperature_low: f32§target_temperature_high: f32§unused_legacy_away: bool§action: i32§fan_mode: i32§swing_mode: i32§custom_fan_mode: String§preset: i32§custom_preset: String§current_humidity: f32§target_humidity: f32Implementations§
Source§impl ClimateStateResponse
impl ClimateStateResponse
Sourcepub fn mode(&self) -> ClimateMode
pub fn mode(&self) -> ClimateMode
Returns the enum value of mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_mode(&mut self, value: ClimateMode)
pub fn set_mode(&mut self, value: ClimateMode)
Sets mode to the provided enum value.
Sourcepub fn action(&self) -> ClimateAction
pub fn action(&self) -> ClimateAction
Returns the enum value of action, or the default if the field is set to an invalid enum value.
Sourcepub fn set_action(&mut self, value: ClimateAction)
pub fn set_action(&mut self, value: ClimateAction)
Sets action to the provided enum value.
Sourcepub fn fan_mode(&self) -> ClimateFanMode
pub fn fan_mode(&self) -> ClimateFanMode
Returns the enum value of fan_mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_fan_mode(&mut self, value: ClimateFanMode)
pub fn set_fan_mode(&mut self, value: ClimateFanMode)
Sets fan_mode to the provided enum value.
Sourcepub fn swing_mode(&self) -> ClimateSwingMode
pub fn swing_mode(&self) -> ClimateSwingMode
Returns the enum value of swing_mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_swing_mode(&mut self, value: ClimateSwingMode)
pub fn set_swing_mode(&mut self, value: ClimateSwingMode)
Sets swing_mode to the provided enum value.
Sourcepub fn preset(&self) -> ClimatePreset
pub fn preset(&self) -> ClimatePreset
Returns the enum value of preset, or the default if the field is set to an invalid enum value.
Sourcepub fn set_preset(&mut self, value: ClimatePreset)
pub fn set_preset(&mut self, value: ClimatePreset)
Sets preset to the provided enum value.
Trait Implementations§
Source§impl Clone for ClimateStateResponse
impl Clone for ClimateStateResponse
Source§fn clone(&self) -> ClimateStateResponse
fn clone(&self) -> ClimateStateResponse
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 ClimateStateResponse
impl Debug for ClimateStateResponse
Source§impl Default for ClimateStateResponse
impl Default for ClimateStateResponse
Source§impl<'a> From<&'a ClimateStateResponse> for MessageType
impl<'a> From<&'a ClimateStateResponse> for MessageType
Source§fn from(_value: &'a ClimateStateResponse) -> Self
fn from(_value: &'a ClimateStateResponse) -> Self
Converts to this type from the input type.
Source§impl Message for ClimateStateResponse
impl Message for ClimateStateResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ClimateStateResponse
impl PartialEq for ClimateStateResponse
impl StructuralPartialEq for ClimateStateResponse
Auto Trait Implementations§
impl Freeze for ClimateStateResponse
impl RefUnwindSafe for ClimateStateResponse
impl Send for ClimateStateResponse
impl Sync for ClimateStateResponse
impl Unpin for ClimateStateResponse
impl UnsafeUnpin for ClimateStateResponse
impl UnwindSafe for ClimateStateResponse
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