pub struct ChatBoostStatus {
pub is_boosted: bool,
pub level: i32,
pub boost_count: i32,
pub current_level_boost_count: i32,
pub next_level_boost_count: i32,
pub premium_member_count: i32,
pub premium_member_percentage: f64,
}
Expand description
Describes current boost status of a chat
Fields§
§is_boosted: bool
True, if the current user has already boosted the chat
level: i32
Current boost level of the chat
boost_count: i32
The number of times the chat was boosted
current_level_boost_count: i32
The number of boosts added to reach the current level
next_level_boost_count: i32
The number of boosts needed to reach the next level; 0 if the next level isn’t available
Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn’t an administrator in the chat
A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn’t an administrator in the chat
Trait Implementations§
Source§impl Clone for ChatBoostStatus
impl Clone for ChatBoostStatus
Source§fn clone(&self) -> ChatBoostStatus
fn clone(&self) -> ChatBoostStatus
Returns a copy 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 ChatBoostStatus
impl Debug for ChatBoostStatus
Source§impl Default for ChatBoostStatus
impl Default for ChatBoostStatus
Source§fn default() -> ChatBoostStatus
fn default() -> ChatBoostStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatBoostStatus
impl<'de> Deserialize<'de> for ChatBoostStatus
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
Source§impl PartialEq for ChatBoostStatus
impl PartialEq for ChatBoostStatus
Source§impl Serialize for ChatBoostStatus
impl Serialize for ChatBoostStatus
impl StructuralPartialEq for ChatBoostStatus
Auto Trait Implementations§
impl Freeze for ChatBoostStatus
impl RefUnwindSafe for ChatBoostStatus
impl Send for ChatBoostStatus
impl Sync for ChatBoostStatus
impl Unpin for ChatBoostStatus
impl UnwindSafe for ChatBoostStatus
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