pub struct LightOp {
pub red: u8,
pub green: u8,
pub blue: u8,
pub duration: Option<Duration>,
}Expand description
A light operation.
Fields§
§red: u8The value of red light.
green: u8The value of green light.
blue: u8The value of blue light.
duration: Option<Duration>Duration to turn on the light.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LightOp
impl<'de> Deserialize<'de> for LightOp
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
Auto Trait Implementations§
impl Freeze for LightOp
impl RefUnwindSafe for LightOp
impl Send for LightOp
impl Sync for LightOp
impl Unpin for LightOp
impl UnwindSafe for LightOp
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