pub struct FileDownload {
pub file_id: i32,
pub message: Message,
pub add_date: i32,
pub complete_date: i32,
pub is_paused: bool,
}
Expand description
Describes a file added to file download list
Fields§
§file_id: i32
File identifier
message: Message
The message with the file
add_date: i32
Point in time (Unix timestamp) when the file was added to the download list
complete_date: i32
Point in time (Unix timestamp) when the file downloading was completed; 0 if the file downloading isn’t completed
is_paused: bool
True, if downloading of the file is paused
Trait Implementations§
Source§impl Clone for FileDownload
impl Clone for FileDownload
Source§fn clone(&self) -> FileDownload
fn clone(&self) -> FileDownload
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 FileDownload
impl Debug for FileDownload
Source§impl<'de> Deserialize<'de> for FileDownload
impl<'de> Deserialize<'de> for FileDownload
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 FileDownload
impl PartialEq for FileDownload
Source§impl Serialize for FileDownload
impl Serialize for FileDownload
impl StructuralPartialEq for FileDownload
Auto Trait Implementations§
impl Freeze for FileDownload
impl RefUnwindSafe for FileDownload
impl Send for FileDownload
impl Sync for FileDownload
impl Unpin for FileDownload
impl UnwindSafe for FileDownload
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