pub struct PrivateAuthData {
pub success: bool,
pub ret_msg: String,
pub op: String,
pub conn_id: String,
pub req_id: Option<String>,
}Expand description
Authentication data for private WebSocket streams.
Fields§
§success: boolWhether authentication was successful.
true if authentication succeeded, false otherwise.
Bots should check this field before proceeding with private stream operations.
ret_msg: StringReturn message from authentication.
Typically empty string for success, error message for failure. Bots should log this for debugging authentication issues.
op: StringOperation type, always “auth” for authentication responses.
Bots use this to identify the message type.
conn_id: StringConnection ID for the authenticated WebSocket connection.
A unique identifier for the WebSocket connection. Bots can use this to track specific connections.
req_id: Option<String>Request ID (optional).
The ID of the authentication request, if provided. Bots can use this to correlate requests and responses.
Implementations§
Trait Implementations§
Source§impl Clone for PrivateAuthData
impl Clone for PrivateAuthData
Source§fn clone(&self) -> PrivateAuthData
fn clone(&self) -> PrivateAuthData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more