Skip to main content

ListEntitiesClimateResponse

Struct ListEntitiesClimateResponse 

Source
pub struct ListEntitiesClimateResponse {
Show 25 fields pub object_id: String, pub key: u32, pub name: String, pub unique_id: String, pub supports_current_temperature: bool, pub supports_two_point_target_temperature: bool, pub supported_modes: Vec<i32>, pub visual_min_temperature: f32, pub visual_max_temperature: f32, pub visual_target_temperature_step: f32, pub legacy_supports_away: bool, pub supports_action: bool, pub supported_fan_modes: Vec<i32>, pub supported_swing_modes: Vec<i32>, pub supported_custom_fan_modes: Vec<String>, pub supported_presets: Vec<i32>, pub supported_custom_presets: Vec<String>, pub disabled_by_default: bool, pub icon: String, pub entity_category: i32, pub visual_current_temperature_step: f32, pub supports_current_humidity: bool, pub supports_target_humidity: bool, pub visual_min_humidity: f32, pub visual_max_humidity: f32,
}

Fields§

§object_id: String§key: u32§name: String§unique_id: String§supports_current_temperature: bool§supports_two_point_target_temperature: bool§supported_modes: Vec<i32>§visual_min_temperature: f32§visual_max_temperature: f32§visual_target_temperature_step: f32§legacy_supports_away: bool

for older peer versions - in new system this is if CLIMATE_PRESET_AWAY exists is supported_presets

§supports_action: bool§supported_fan_modes: Vec<i32>§supported_swing_modes: Vec<i32>§supported_custom_fan_modes: Vec<String>§supported_presets: Vec<i32>§supported_custom_presets: Vec<String>§disabled_by_default: bool§icon: String§entity_category: i32§visual_current_temperature_step: f32§supports_current_humidity: bool§supports_target_humidity: bool§visual_min_humidity: f32§visual_max_humidity: f32

Implementations§

Source§

impl ListEntitiesClimateResponse

Source

pub fn supported_modes( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<ClimateMode>>

Returns an iterator which yields the valid enum values contained in supported_modes.

Source

pub fn push_supported_modes(&mut self, value: ClimateMode)

Appends the provided enum value to supported_modes.

Source

pub fn supported_fan_modes( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<ClimateFanMode>>

Returns an iterator which yields the valid enum values contained in supported_fan_modes.

Source

pub fn push_supported_fan_modes(&mut self, value: ClimateFanMode)

Appends the provided enum value to supported_fan_modes.

Source

pub fn supported_swing_modes( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<ClimateSwingMode>>

Returns an iterator which yields the valid enum values contained in supported_swing_modes.

Source

pub fn push_supported_swing_modes(&mut self, value: ClimateSwingMode)

Appends the provided enum value to supported_swing_modes.

Source

pub fn supported_presets( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<ClimatePreset>>

Returns an iterator which yields the valid enum values contained in supported_presets.

Source

pub fn push_supported_presets(&mut self, value: ClimatePreset)

Appends the provided enum value to supported_presets.

Source

pub fn entity_category(&self) -> EntityCategory

Returns the enum value of entity_category, or the default if the field is set to an invalid enum value.

Source

pub fn set_entity_category(&mut self, value: EntityCategory)

Sets entity_category to the provided enum value.

Trait Implementations§

Source§

impl Clone for ListEntitiesClimateResponse

Source§

fn clone(&self) -> ListEntitiesClimateResponse

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ListEntitiesClimateResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ListEntitiesClimateResponse

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'a> From<&'a ListEntitiesClimateResponse> for MessageType

Source§

fn from(_value: &'a ListEntitiesClimateResponse) -> Self

Converts to this type from the input type.
Source§

impl Message for ListEntitiesClimateResponse

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

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,

Encodes the message to a newly allocated buffer.
Source§

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,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

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,

Decodes a length-delimited instance of the message from the buffer.
Source§

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 more
Source§

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 ListEntitiesClimateResponse

Source§

fn eq(&self, other: &ListEntitiesClimateResponse) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ListEntitiesClimateResponse

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.