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
Auto Trait Implementations§
impl Freeze for InputFile
impl RefUnwindSafe for InputFile
impl Send for InputFile
impl Sync for InputFile
impl Unpin for InputFile
impl UnwindSafe for InputFile
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