1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
//! Types related to downloadable files. use serde::*; pub mod id; pub use id::Id; /// Represents a [`File`]. /// /// [`File`]: https://core.telegram.org/bots/api#file #[derive(Debug, PartialEq, Eq, Clone, Hash, Deserialize)] // todo: #[non_exhaustive] pub struct File { /// The ID of the file. #[serde(rename = "file_id")] pub id: Id, /// The size fo the file. #[serde(rename = "file_size")] pub size: Option<u32>, /// The path of the file. #[serde(rename = "file_path")] pub path: Option<String>, }