pub struct SecretChat {
pub id: i32,
pub user_id: i64,
pub state: SecretChatState,
pub is_outbound: bool,
pub key_hash: String,
pub layer: i32,
}Expand description
Represents a secret chat
Fields§
§id: i32Secret chat identifier
user_id: i64Identifier of the chat partner
state: SecretChatStateState of the secret chat
is_outbound: boolTrue, if the chat was created by the current user; false otherwise
key_hash: StringHash of the currently used key for comparison with the hash of the chat partner’s key. This is a string of 36 little-endian bytes, which must be split into groups of 2 bits, each denoting a pixel of one of 4 colors FFFFFF, D5E6F3, 2D5775, and 2F99C9. The pixels must be used to make a 12x12 square image filled from left to right, top to bottom. Alternatively, the first 32 bytes of the hash can be converted to the hexadecimal format and printed as 32 2-digit hex numbers
layer: i32Secret chat layer; determines features supported by the chat partner’s application. Nested text entities and underline and strikethrough entities are supported if the layer >= 101, files bigger than 2000MB are supported if the layer >= 143, spoiler and custom emoji text entities are supported if the layer >= 144
Trait Implementations§
Source§impl Clone for SecretChat
impl Clone for SecretChat
Source§fn clone(&self) -> SecretChat
fn clone(&self) -> SecretChat
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SecretChat
impl Debug for SecretChat
Source§impl<'de> Deserialize<'de> for SecretChat
impl<'de> Deserialize<'de> for SecretChat
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>,
Source§impl PartialEq for SecretChat
impl PartialEq for SecretChat
Source§fn eq(&self, other: &SecretChat) -> bool
fn eq(&self, other: &SecretChat) -> bool
self and other values to be equal, and is used by ==.