diff --git a/CHANGELOG.md b/CHANGELOG.md index 07cda31b..51452b94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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]) diff --git a/src/types/input_file.rs b/src/types/input_file.rs index eb9bd600..4ace6e85 100644 --- a/src/types/input_file.rs +++ b/src/types/input_file.rs @@ -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 {