pub struct ChatRef {
pub chat_type: ChatType,
pub chat_id: i64,
pub chat_scope: Option<GroupChatScope>,
pub undocumented: BTreeMap<String, JsonObject>,
}Expand description
Used in API commands. Chat scope can only be passed with groups.
Syntax:
<str(chatType)><chatId>[<str(chatScope)>]Fields§
§chat_type: ChatType§chat_id: i64§chat_scope: Option<GroupChatScope>§undocumented: BTreeMap<String, JsonObject>Trait Implementations§
Source§impl CommandSyntax for ChatRef
impl CommandSyntax for ChatRef
Source§impl<'de> Deserialize<'de> for ChatRef
impl<'de> Deserialize<'de> for ChatRef
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
impl StructuralPartialEq for ChatRef
Auto Trait Implementations§
impl Freeze for ChatRef
impl RefUnwindSafe for ChatRef
impl Send for ChatRef
impl Sync for ChatRef
impl Unpin for ChatRef
impl UnwindSafe for ChatRef
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