pub struct ImagePayload {
pub image: Option<String>,
pub target: Target,
pub state: Option<u8>,
}
Expand description
The image to set as part of a SetImage message.
Fields§
§image: Option<String>
An image in the form of a data URI.
target: Target
The target displays.
state: Option<u8>
The state to set the image for. If not set, it is set for all states.
Trait Implementations§
Source§impl Debug for ImagePayload
impl Debug for ImagePayload
Source§impl<'de> Deserialize<'de> for ImagePayload
impl<'de> Deserialize<'de> for ImagePayload
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 ImagePayload
impl RefUnwindSafe for ImagePayload
impl Send for ImagePayload
impl Sync for ImagePayload
impl Unpin for ImagePayload
impl UnwindSafe for ImagePayload
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