Struct rust_tdlib::types::NetworkStatisticsEntryCall
source · [−]pub struct NetworkStatisticsEntryCall { /* private fields */ }
Expand description
Contains information about the total amount of data that was used for calls
Implementations
sourceimpl NetworkStatisticsEntryCall
impl NetworkStatisticsEntryCall
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> NetworkStatisticsEntryCallBuilder
pub fn network_type(&self) -> &NetworkType
pub fn sent_bytes(&self) -> i64
pub fn received_bytes(&self) -> i64
pub fn duration(&self) -> f32
Trait Implementations
sourceimpl AsRef<NetworkStatisticsEntryCall> for NetworkStatisticsEntryCall
impl AsRef<NetworkStatisticsEntryCall> for NetworkStatisticsEntryCall
sourcefn as_ref(&self) -> &NetworkStatisticsEntryCall
fn as_ref(&self) -> &NetworkStatisticsEntryCall
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for NetworkStatisticsEntryCall
impl Clone for NetworkStatisticsEntryCall
sourcefn clone(&self) -> NetworkStatisticsEntryCall
fn clone(&self) -> NetworkStatisticsEntryCall
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 more
sourceimpl Debug for NetworkStatisticsEntryCall
impl Debug for NetworkStatisticsEntryCall
sourceimpl Default for NetworkStatisticsEntryCall
impl Default for NetworkStatisticsEntryCall
sourcefn default() -> NetworkStatisticsEntryCall
fn default() -> NetworkStatisticsEntryCall
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for NetworkStatisticsEntryCall
impl<'de> Deserialize<'de> for NetworkStatisticsEntryCall
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
impl TDNetworkStatisticsEntry for NetworkStatisticsEntryCall
Auto Trait Implementations
impl RefUnwindSafe for NetworkStatisticsEntryCall
impl Send for NetworkStatisticsEntryCall
impl Sync for NetworkStatisticsEntryCall
impl Unpin for NetworkStatisticsEntryCall
impl UnwindSafe for NetworkStatisticsEntryCall
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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