pub enum InputFile {
Id(InputFileId),
Remote(InputFileRemote),
Local(InputFileLocal),
Generated(InputFileGenerated),
}
Variants§
Id(InputFileId)
A file defined by its unique ID
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
Local(InputFileLocal)
A file defined by a local path
Generated(InputFileGenerated)
A file generated by the application
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