Enum rust_tuyapi::Payload
source · pub enum Payload {
Struct(PayloadStruct),
String(String),
}
Expand description
The Payload enum represents a payload sent to, and recevied from the Tuya devices. It might be a struct (ser/de from json) or a plain string.
Variants§
Struct(PayloadStruct)
String(String)
Implementations§
Trait Implementations§
source§impl PartialEq<Payload> for Payload
impl PartialEq<Payload> for Payload
impl StructuralPartialEq for Payload
Auto Trait Implementations§
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
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