pub struct AuthorizationRequest {
pub auth_type: AuthType,
pub auth_token: String,
pub client_info: ClientInfo,
pub device_info: DeviceInfo,
pub protocol_version: String,
pub properties: HashMap<String, String>,
}Expand description
连接请求
Fields§
§auth_type: AuthType认证类型
auth_token: String认证令牌
client_info: ClientInfo客户端信息
device_info: DeviceInfo设备信息
protocol_version: String协议版本
properties: HashMap<String, String>扩展属性
Implementations§
Source§impl AuthorizationRequest
impl AuthorizationRequest
pub fn new() -> Self
pub fn create_packet(self) -> Packet<Self>
Trait Implementations§
Source§impl Clone for AuthorizationRequest
impl Clone for AuthorizationRequest
Source§fn clone(&self) -> AuthorizationRequest
fn clone(&self) -> AuthorizationRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthorizationRequest
impl Debug for AuthorizationRequest
Source§impl<'de> Deserialize<'de> for AuthorizationRequest
impl<'de> Deserialize<'de> for AuthorizationRequest
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
Source§impl Message for AuthorizationRequest
impl Message for AuthorizationRequest
Source§fn message_type(&self) -> MessageType
fn message_type(&self) -> MessageType
获取消息类型
Auto Trait Implementations§
impl Freeze for AuthorizationRequest
impl RefUnwindSafe for AuthorizationRequest
impl Send for AuthorizationRequest
impl Sync for AuthorizationRequest
impl Unpin for AuthorizationRequest
impl UnsafeUnpin for AuthorizationRequest
impl UnwindSafe for AuthorizationRequest
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