Skip to main content

Property

Trait Property 

Source
pub trait Property:
    Debug
    + Clone
    + Serialize
    + for<'de> Deserialize<'de> {
    const KEY: &str;
    const KIND: PropertyKind;
}

Required Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Property for MediaCommand

Source§

const KEY: &str = "command"

Source§

const KIND: PropertyKind = crate::property::PropertyKind::Command

Source§

impl Property for OnOffCommand

Source§

const KEY: &str = "command"

Source§

const KIND: PropertyKind = crate::property::PropertyKind::Command

Source§

impl Property for EntityStatus

Source§

const KEY: &str = "status"

Source§

const KIND: PropertyKind = crate::property::PropertyKind::State

Source§

impl Property for LightCommand

Source§

const KEY: &str = "command"

Source§

const KIND: PropertyKind = crate::property::PropertyKind::Command

Source§

impl Property for LightState

Source§

const KEY: &str = "state"

Source§

const KIND: PropertyKind = crate::property::PropertyKind::State

Source§

impl Property for MediaCapabilities

Source§

const KEY: &str = "capabilities"

Source§

const KIND: PropertyKind = crate::property::PropertyKind::State

Source§

impl Property for MediaState

Source§

const KEY: &str = "state"

Source§

const KIND: PropertyKind = crate::property::PropertyKind::State

Source§

impl Property for On

Source§

const KEY: &str = "on"

Source§

const KIND: PropertyKind = crate::property::PropertyKind::State

Source§

impl Property for Name

Source§

const KEY: &str = "name"

Source§

const KIND: PropertyKind = crate::property::PropertyKind::State

Source§

impl Property for Provider

Source§

const KEY: &str = "provider"

Source§

const KIND: PropertyKind = crate::property::PropertyKind::State

Source§

impl Property for Type

Source§

const KEY: &str = "type"

Source§

const KIND: PropertyKind = crate::property::PropertyKind::State

Source§

impl Property for Version

Source§

const KEY: &str = "version"

Source§

const KIND: PropertyKind = crate::property::PropertyKind::State