pub struct Command {
pub device_id: String,
pub name: String,
pub payload: Vec<u8>,
pub request_id: Option<String>,
}Expand description
一条下行指令
Fields§
§device_id: String目标设备
name: String指令 / 服务标识(RPC 方法名)
payload: Vec<u8>指令载荷(已编码字节)
request_id: Option<String>RPC 请求标识:MQTT 下行主题 v1/devices/me/rpc/request/{requestId} 使用,
设备应答时回填;不传(None)由下行通道兜底生成
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Command
impl Freeze for Command
impl Move for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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