Enum rust_tdlib::types::InputFile
source · pub enum InputFile {
Generated(InputFileGenerated),
Id(InputFileId),
Local(InputFileLocal),
Remote(InputFileRemote),
// some variants omitted
}
Expand description
Points to a file
Variants§
Generated(InputFileGenerated)
A file generated by the application
Id(InputFileId)
A file defined by its unique ID
Local(InputFileLocal)
A file defined by a local path
Remote(InputFileRemote)
A file defined by its remote ID. The remote ID is guaranteed to be usable only if the corresponding file is still accessible to the user and known to TDLib. For example, if the file is from a message, then the message must be not deleted and accessible to the user. If the file database is disabled, then the corresponding object with the file must be preloaded by the application
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for InputFile
impl<'de> Deserialize<'de> for InputFile
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