Struct telegram_bot_fork_raw::types::chat::Supergroup
source · pub struct Supergroup {
pub id: SupergroupId,
pub title: String,
pub username: Option<String>,
}
Expand description
This object represents a supergroup.
Fields
id: SupergroupId
Unique identifier for this chat.
title: String
Title, for supergroups, channels and group chats.
username: Option<String>
Username for supergroup.
Trait Implementations
sourceimpl Clone for Supergroup
impl Clone for Supergroup
sourcefn clone(&self) -> Supergroup
fn clone(&self) -> Supergroup
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 Supergroup
impl Debug for Supergroup
sourceimpl<'de> Deserialize<'de> for Supergroup
impl<'de> Deserialize<'de> for Supergroup
sourcefn 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
sourceimpl Hash for Supergroup
impl Hash for Supergroup
sourceimpl Ord for Supergroup
impl Ord for Supergroup
sourcefn cmp(&self, other: &Supergroup) -> Ordering
fn cmp(&self, other: &Supergroup) -> 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<Supergroup> for Supergroup
impl PartialEq<Supergroup> for Supergroup
sourcefn eq(&self, other: &Supergroup) -> bool
fn eq(&self, other: &Supergroup) -> bool
sourceimpl PartialOrd<Supergroup> for Supergroup
impl PartialOrd<Supergroup> for Supergroup
sourcefn partial_cmp(&self, other: &Supergroup) -> Option<Ordering>
fn partial_cmp(&self, other: &Supergroup) -> 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 Supergroup
impl ToChatRef for Supergroup
fn to_chat_ref(&self) -> ChatRef
impl Eq for Supergroup
impl StructuralEq for Supergroup
impl StructuralPartialEq for Supergroup
Auto Trait Implementations
impl RefUnwindSafe for Supergroup
impl Send for Supergroup
impl Sync for Supergroup
impl Unpin for Supergroup
impl UnwindSafe for Supergroup
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