Struct telexide_fork::model::PrivateChat [−][src]
pub struct PrivateChat {
pub id: i64,
pub username: Option<String>,
pub first_name: Option<String>,
pub bio: Option<String>,
pub last_name: Option<String>,
pub photo: Option<ChatPhoto>,
}Expand description
A private chat object, also known as a DM, between the bot and an user
Fields
id: i64Unique identifier for this chat
username: Option<String>Username if available
first_name: Option<String>First name of the other party
bio: Option<String>Bio of the other party in a private chat. Returned only in get_chat.
last_name: Option<String>Last name of the other party
photo: Option<ChatPhoto>Chat photo. Returned only in get_chat.
Trait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for PrivateChat
impl Send for PrivateChat
impl Sync for PrivateChat
impl Unpin for PrivateChat
impl UnwindSafe for PrivateChat
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more