Struct telexide::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>, }
A private chat object, also known as a DM, between the bot and an user
Fields
id: i64
Unique 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
impl Clone for PrivateChat
[src]
impl Clone for PrivateChat
[src]fn clone(&self) -> PrivateChat
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for PrivateChat
[src]
impl<'de> Deserialize<'de> for PrivateChat
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<PrivateChat> for PrivateChat
[src]
impl PartialEq<PrivateChat> for PrivateChat
[src]fn eq(&self, other: &PrivateChat) -> bool
[src]
fn ne(&self, other: &PrivateChat) -> bool
[src]
impl Serialize for PrivateChat
[src]
impl Serialize for PrivateChat
[src]impl StructuralPartialEq for PrivateChat
[src]
impl StructuralPartialEq for PrivateChat
[src]Auto Trait Implementations
impl RefUnwindSafe for PrivateChat
impl RefUnwindSafe for PrivateChat
impl Send for PrivateChat
impl Send for PrivateChat
impl Sync for PrivateChat
impl Sync for PrivateChat
impl Unpin for PrivateChat
impl Unpin for PrivateChat
impl UnwindSafe for PrivateChat
impl UnwindSafe for PrivateChat
Blanket Implementations
impl<T> CloneAny for T where
T: Any + Clone,
[src]
impl<T> CloneAny for T where
T: Any + Clone,
[src]pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
[src]
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
[src]
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
[src]
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
[src]
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> UnsafeAny for T where
T: Any,
impl<T> UnsafeAny for T where
T: Any,