pub struct AuthorizationResponse {
pub success: bool,
pub error_code: Option<String>,
pub error_message: Option<String>,
pub session_id: Option<String>,
pub user_id: Option<u64>,
pub connection_id: Option<String>,
pub server_info: Option<ServerInfo>,
pub heartbeat_interval: Option<u64>,
}Expand description
连接响应
Fields§
§success: bool连接是否成功
error_code: Option<String>错误码
error_message: Option<String>错误信息
session_id: Option<String>会话ID
user_id: Option<u64>用户ID
connection_id: Option<String>服务器分配的连接ID
server_info: Option<ServerInfo>服务器信息
heartbeat_interval: Option<u64>心跳间隔(秒)
Trait Implementations§
Source§impl Clone for AuthorizationResponse
impl Clone for AuthorizationResponse
Source§fn clone(&self) -> AuthorizationResponse
fn clone(&self) -> AuthorizationResponse
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 AuthorizationResponse
impl Debug for AuthorizationResponse
Source§impl<'de> Deserialize<'de> for AuthorizationResponse
impl<'de> Deserialize<'de> for AuthorizationResponse
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 AuthorizationResponse
impl Message for AuthorizationResponse
Source§fn message_type(&self) -> MessageType
fn message_type(&self) -> MessageType
获取消息类型
Auto Trait Implementations§
impl Freeze for AuthorizationResponse
impl RefUnwindSafe for AuthorizationResponse
impl Send for AuthorizationResponse
impl Sync for AuthorizationResponse
impl Unpin for AuthorizationResponse
impl UnsafeUnpin for AuthorizationResponse
impl UnwindSafe for AuthorizationResponse
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