pub enum ServerDeviceFeatureInput {
Battery(ServerDeviceFeatureInputProperties),
Rssi(ServerDeviceFeatureInputProperties),
Button(ServerDeviceFeatureInputProperties),
Pressure(ServerDeviceFeatureInputProperties),
Depth(ServerDeviceFeatureInputProperties),
Position(ServerDeviceFeatureInputProperties),
}Variants§
Battery(ServerDeviceFeatureInputProperties)
Rssi(ServerDeviceFeatureInputProperties)
Button(ServerDeviceFeatureInputProperties)
Pressure(ServerDeviceFeatureInputProperties)
Depth(ServerDeviceFeatureInputProperties)
Position(ServerDeviceFeatureInputProperties)
Implementations§
Source§impl ServerDeviceFeatureInput
impl ServerDeviceFeatureInput
pub fn input_type(&self) -> InputType
pub fn properties(&self) -> &ServerDeviceFeatureInputProperties
pub fn can_subscribe(&self) -> bool
Trait Implementations§
Source§impl Clone for ServerDeviceFeatureInput
impl Clone for ServerDeviceFeatureInput
Source§impl Debug for ServerDeviceFeatureInput
impl Debug for ServerDeviceFeatureInput
Source§impl<'de> Deserialize<'de> for ServerDeviceFeatureInput
impl<'de> Deserialize<'de> for ServerDeviceFeatureInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ServerDeviceFeatureInput> for DeviceFeatureInput
impl From<&ServerDeviceFeatureInput> for DeviceFeatureInput
Source§fn from(val: &ServerDeviceFeatureInput) -> Self
fn from(val: &ServerDeviceFeatureInput) -> Self
Converts to this type from the input type.
Source§impl Serialize for ServerDeviceFeatureInput
impl Serialize for ServerDeviceFeatureInput
Auto Trait Implementations§
impl Forget for ServerDeviceFeatureInput
impl Freeze for ServerDeviceFeatureInput
impl Move for ServerDeviceFeatureInput
impl RefUnwindSafe for ServerDeviceFeatureInput
impl Send for ServerDeviceFeatureInput
impl Sync for ServerDeviceFeatureInput
impl Unpin for ServerDeviceFeatureInput
impl UnsafeUnpin for ServerDeviceFeatureInput
impl UnwindSafe for ServerDeviceFeatureInput
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