pub struct LightParams {
pub on: Option<bool>,
pub rgb: Option<[u8; 3]>,
pub white: Option<u8>,
pub brightness: Option<u8>,
pub ct: Option<u32>,
}Expand description
Attributes to apply in a single *.Set call. Fields left None are omitted
from the RPC body and therefore unchanged on the device.
Fields§
§on: Option<bool>§rgb: Option<[u8; 3]>§white: Option<u8>§brightness: Option<u8>§ct: Option<u32>Trait Implementations§
Source§impl Clone for LightParams
impl Clone for LightParams
Source§fn clone(&self) -> LightParams
fn clone(&self) -> LightParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LightParams
impl Debug for LightParams
Source§impl Default for LightParams
impl Default for LightParams
Source§fn default() -> LightParams
fn default() -> LightParams
Returns the “default value” for a type. Read more
Source§impl PartialEq for LightParams
impl PartialEq for LightParams
impl StructuralPartialEq for LightParams
Auto Trait Implementations§
impl Freeze for LightParams
impl RefUnwindSafe for LightParams
impl Send for LightParams
impl Sync for LightParams
impl Unpin for LightParams
impl UnsafeUnpin for LightParams
impl UnwindSafe for LightParams
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