Add #[non_exhaustive] on InputFile

This commit is contained in:
Waffle 2021-02-16 17:10:02 +03:00
parent 8abf3863e5
commit 417b8eb1e1
2 changed files with 2 additions and 0 deletions

View file

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- `#[non_exhaustive]` on `InputFile` since we may want to add new ways to send files in the future ([#49][pr49])
- `MultipartPayload` for future proofing ([#49][pr49])
- Support for `rustls` ([#24][pr24])
- `#[must_use]` attr to payloads implemented by macro ([#22][pr22])

View file

@ -6,6 +6,7 @@ use std::{borrow::Cow, path::PathBuf};
///
/// [The official docs](https://core.telegram.org/bots/api#inputfile).
#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub enum InputFile {
File(PathBuf),
Memory {