Enum telegram_bot_api::types::InputFile
source · [−]pub enum InputFile {
FileID(String),
FileURL(String),
FileAttach(String),
FileBytes(String, Vec<u8>),
FilePath(String),
}
Expand description
This object represents the contents of a file to be uploaded. Must be posted using multipart/form-data in the usual way that files are uploaded via the browser.
Variants
FileID(String)
FileID is an ID of a file already uploaded to Telegram.
FileURL(String)
FileURL is a URL to use as a file for a request.
FileAttach(String)
fileAttach is an internal file type used for processed media groups.
FileBytes(String, Vec<u8>)
FileBytes contains information about a set of bytes to upload as a File.
FilePath(String)
FilePath is a path to a local file.
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for InputFile
impl<'de> Deserialize<'de> for InputFile
sourcefn 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 RefUnwindSafe for InputFile
impl Send for InputFile
impl Sync for InputFile
impl Unpin for InputFile
impl UnwindSafe for InputFile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more