pub struct UpdateSpeedLimitNotification {
pub is_upload: bool,
}
Expand description
Download or upload file speed for the user was limited, but it can be restored by subscription to Telegram Premium. The notification can be postponed until a being downloaded or uploaded file is visible to the user Use getOption(“premium_download_speedup”) or getOption(“premium_upload_speedup”) to get expected speedup after subscription to Telegram Premium
Fields§
§is_upload: bool
True, if upload speed was limited; false, if download speed was limited
Trait Implementations§
Source§impl Clone for UpdateSpeedLimitNotification
impl Clone for UpdateSpeedLimitNotification
Source§fn clone(&self) -> UpdateSpeedLimitNotification
fn clone(&self) -> UpdateSpeedLimitNotification
Returns a duplicate 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 UpdateSpeedLimitNotification
impl Debug for UpdateSpeedLimitNotification
Source§impl Default for UpdateSpeedLimitNotification
impl Default for UpdateSpeedLimitNotification
Source§fn default() -> UpdateSpeedLimitNotification
fn default() -> UpdateSpeedLimitNotification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateSpeedLimitNotification
impl<'de> Deserialize<'de> for UpdateSpeedLimitNotification
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 UpdateSpeedLimitNotification
impl PartialEq for UpdateSpeedLimitNotification
Source§fn eq(&self, other: &UpdateSpeedLimitNotification) -> bool
fn eq(&self, other: &UpdateSpeedLimitNotification) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for UpdateSpeedLimitNotification
Auto Trait Implementations§
impl Freeze for UpdateSpeedLimitNotification
impl RefUnwindSafe for UpdateSpeedLimitNotification
impl Send for UpdateSpeedLimitNotification
impl Sync for UpdateSpeedLimitNotification
impl Unpin for UpdateSpeedLimitNotification
impl UnwindSafe for UpdateSpeedLimitNotification
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