Enum telegram_bot_fork_raw::types::chat::MessageChat
source · pub enum MessageChat {
Private(User),
Group(Group),
Supergroup(Supergroup),
// some variants omitted
}
Expand description
This object represents a private, group or supergroup.
Variants
Private(User)
Group(Group)
Supergroup(Supergroup)
Implementations
sourceimpl MessageChat
impl MessageChat
Trait Implementations
sourceimpl Clone for MessageChat
impl Clone for MessageChat
sourcefn clone(&self) -> MessageChat
fn clone(&self) -> MessageChat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MessageChat
impl Debug for MessageChat
sourceimpl Hash for MessageChat
impl Hash for MessageChat
sourceimpl Ord for MessageChat
impl Ord for MessageChat
sourcefn cmp(&self, other: &MessageChat) -> Ordering
fn cmp(&self, other: &MessageChat) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<MessageChat> for MessageChat
impl PartialEq<MessageChat> for MessageChat
sourcefn eq(&self, other: &MessageChat) -> bool
fn eq(&self, other: &MessageChat) -> bool
sourceimpl PartialOrd<MessageChat> for MessageChat
impl PartialOrd<MessageChat> for MessageChat
sourcefn partial_cmp(&self, other: &MessageChat) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageChat) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl ToChatRef for MessageChat
impl ToChatRef for MessageChat
fn to_chat_ref(&self) -> ChatRef
impl Eq for MessageChat
impl StructuralEq for MessageChat
impl StructuralPartialEq for MessageChat
Auto Trait Implementations
impl RefUnwindSafe for MessageChat
impl Send for MessageChat
impl Sync for MessageChat
impl Unpin for MessageChat
impl UnwindSafe for MessageChat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more