pub struct RemoteFile {
    pub id: String,
    pub is_uploading_active: bool,
    pub is_uploading_completed: bool,
    pub uploaded_size: i32,
}Expand description
Represents a remote file
Fields§
§id: StringRemote file identifier; may be empty. Can be used across application restarts or even from other devices for the current user. If the ID starts with “http://” or “https://”, it represents the HTTP URL of the file. TDLib is currently unable to download files if only their URL is known. If downloadFile is called on such a file or if it is sent to a secret chat, TDLib starts a file generation process by sending updateFileGenerationStart to the client with the HTTP URL in the original_path and “#url#” as the conversion string. Clients should generate the file by downloading it to the specified location
is_uploading_active: boolTrue, if the file is currently being uploaded (or a remote copy is being generated by some other means)
is_uploading_completed: boolTrue, if a remote copy is fully available
uploaded_size: i32Size of the remote available part of the file; 0 if unknown
Trait Implementations§
Source§impl Clone for RemoteFile
 
impl Clone for RemoteFile
Source§fn clone(&self) -> RemoteFile
 
fn clone(&self) -> RemoteFile
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read more