Type Alias SubDevBatchLogoutRequest

Source
pub type SubDevBatchLogoutRequest = AlinkRequest<Vec<DeviceInfoId>>;

Aliased Type§

struct SubDevBatchLogoutRequest {
    pub id: String,
    pub version: String,
    pub params: Vec<DeviceInfoId>,
    pub sys: Option<SysAck>,
    pub method: Option<String>,
}

Fields§

§id: String§version: String§params: Vec<DeviceInfoId>§sys: Option<SysAck>§method: Option<String>

Implementations

Source§

impl<T> AlinkRequest<T>

Source

pub fn msg_id(&self) -> u64

Source

pub fn new_id(id: u64, method: &str, params: T, ack: Option<i32>) -> Self

Source

pub fn from_params(params: T) -> Self

Source

pub fn new(method: &str, params: T, ack: i32) -> Self

Source

pub fn new_no_ack(method: &str, params: T) -> Self

Trait Implementations

Source§

impl<T: Clone> Clone for AlinkRequest<T>

Source§

fn clone(&self) -> AlinkRequest<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for AlinkRequest<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, T> Deserialize<'de> for AlinkRequest<T>
where T: Deserialize<'de>,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<T> Serialize for AlinkRequest<T>
where T: Serialize,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more