Struct tdlib_types::methods::GetNetworkStatistics
source · pub struct GetNetworkStatistics {
pub only_current: bool,
}
Expand description
Returns network data usage statistics. Can be called before authorization
Fields
only_current: bool
If true, returns only data for the current library launch
Trait Implementations
sourceimpl Clone for GetNetworkStatistics
impl Clone for GetNetworkStatistics
sourcefn clone(&self) -> GetNetworkStatistics
fn clone(&self) -> GetNetworkStatistics
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 GetNetworkStatistics
impl Debug for GetNetworkStatistics
sourceimpl<'de> Deserialize<'de> for GetNetworkStatistics
impl<'de> Deserialize<'de> for GetNetworkStatistics
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 Method for GetNetworkStatistics
impl Method for GetNetworkStatistics
const TYPE: &'static str = "getNetworkStatistics"
type Response = NetworkStatistics
fn tag(self) -> MethodType<Self>where
Self: Sized,
sourceimpl Serialize for GetNetworkStatistics
impl Serialize for GetNetworkStatistics
Auto Trait Implementations
impl RefUnwindSafe for GetNetworkStatistics
impl Send for GetNetworkStatistics
impl Sync for GetNetworkStatistics
impl Unpin for GetNetworkStatistics
impl UnwindSafe for GetNetworkStatistics
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