pub struct InternalLinkTypePublicChat {
pub chat_username: String,
pub draft_text: String,
}
Expand description
The link is a link to a chat by its username. Call searchPublicChat with the given chat username to process the link If the chat is found, open its profile information screen or the chat itself. If draft text isn’t empty and the chat is a private chat, then put the draft text in the input field
Fields§
§chat_username: String
Username of the chat
draft_text: String
Draft text for message to send in the chat
Trait Implementations§
Source§impl Clone for InternalLinkTypePublicChat
impl Clone for InternalLinkTypePublicChat
Source§fn clone(&self) -> InternalLinkTypePublicChat
fn clone(&self) -> InternalLinkTypePublicChat
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 InternalLinkTypePublicChat
impl Debug for InternalLinkTypePublicChat
Source§impl Default for InternalLinkTypePublicChat
impl Default for InternalLinkTypePublicChat
Source§fn default() -> InternalLinkTypePublicChat
fn default() -> InternalLinkTypePublicChat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InternalLinkTypePublicChat
impl<'de> Deserialize<'de> for InternalLinkTypePublicChat
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 InternalLinkTypePublicChat
Auto Trait Implementations§
impl Freeze for InternalLinkTypePublicChat
impl RefUnwindSafe for InternalLinkTypePublicChat
impl Send for InternalLinkTypePublicChat
impl Sync for InternalLinkTypePublicChat
impl Unpin for InternalLinkTypePublicChat
impl UnwindSafe for InternalLinkTypePublicChat
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