pub struct NetworkStatisticsEntryFile { /* private fields */ }
Expand description
Contains information about the total amount of data that was used to send and receive files
Implementations§
Source§impl 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§
Source§impl AsRef<NetworkStatisticsEntryFile> for NetworkStatisticsEntryFile
impl AsRef<NetworkStatisticsEntryFile> for NetworkStatisticsEntryFile
Source§fn as_ref(&self) -> &NetworkStatisticsEntryFile
fn as_ref(&self) -> &NetworkStatisticsEntryFile
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for NetworkStatisticsEntryFile
impl Clone for NetworkStatisticsEntryFile
Source§fn clone(&self) -> NetworkStatisticsEntryFile
fn clone(&self) -> NetworkStatisticsEntryFile
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 NetworkStatisticsEntryFile
impl Debug for NetworkStatisticsEntryFile
Source§impl Default for NetworkStatisticsEntryFile
impl Default for NetworkStatisticsEntryFile
Source§fn default() -> NetworkStatisticsEntryFile
fn default() -> NetworkStatisticsEntryFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkStatisticsEntryFile
impl<'de> Deserialize<'de> for NetworkStatisticsEntryFile
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
impl TDNetworkStatisticsEntry for NetworkStatisticsEntryFile
Auto Trait Implementations§
impl Freeze for NetworkStatisticsEntryFile
impl RefUnwindSafe for NetworkStatisticsEntryFile
impl Send for NetworkStatisticsEntryFile
impl Sync for NetworkStatisticsEntryFile
impl Unpin for NetworkStatisticsEntryFile
impl UnwindSafe for NetworkStatisticsEntryFile
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