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